1<--- FIXED ---> 2-------------------------------------------------------------------------------------------- 3[31m[1m./src/sys/tests/linter/testValidPetscObject.c:12:25: error:[0m Argument number doesn't match for 'obj'. Expected '1', found '2' [-fmatching-arg-num]: 4 10: { 5 11: /* incorrect */ 6> 12: PetscValidHeader(obj, [33m[1m2[0m); 7 [33m[1m^[0m 8 13: PetscValidHeader(dobj, 600); 9 14: 10 11./src/sys/tests/linter/testValidPetscObject.c:9:33 Note: 'obj' is traceable to argument #1 'obj' in enclosing function here: 12 7 : typedef struct _p_PetscLinterDummyObj *PetscLinterDummyObj; 13 8 : 14> 9 : PetscErrorCode ValidPetscObject([33m[1mPetscObject obj[0m, PetscLinterDummyObj dobj) 15 [33m[1m^^^^^^^^^^^^^^^[0m 16 10: { 17 11: /* incorrect */ 18[31m[1m./src/sys/tests/linter/testValidPetscObject.c:13:26: error:[0m Argument number doesn't match for 'dobj'. Expected '2', found '600' [-fmatching-arg-num]: 19 11: /* incorrect */ 20 12: PetscValidHeader(obj, 2); 21> 13: PetscValidHeader(dobj, [33m[1m600[0m); 22 [33m[1m^^^[0m 23 14: 24 15: /* correct */ 25 26./src/sys/tests/linter/testValidPetscObject.c:9:50 Note: 'dobj' is traceable to argument #2 'dobj' in enclosing function here: 27 7 : typedef struct _p_PetscLinterDummyObj *PetscLinterDummyObj; 28 8 : 29> 9 : PetscErrorCode ValidPetscObject(PetscObject obj, [33m[1mPetscLinterDummyObj dobj[0m) 30 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 31 10: { 32 11: /* incorrect */ 33-------------------------------------------------------------------------------------------- 34<--- LEFT ---> 35-------------------------------------------------------------------------------------------- 36[31m[1m./src/sys/tests/linter/testValidPetscObject.c:3:1: error:[0m Invalid type '_p_PetscLinterDummyObj', expected a PetscObject (or derived class) [-fincompatible-type-petscobject]: 37 2: 38> 3: [33m[1ms[0mtruct _p_PetscLinterDummyObj { 39 [33m[1m^[0m 40> 4: void *data; 41> 5: }; 42 6: 43 7: typedef struct _p_PetscLinterDummyObj *PetscLinterDummyObj; 44 45./src/sys/tests/linter/testValidPetscObject.c:3:1 Note: Type '_p_PetscLinterDummyObj' is prefixed with '_p_' to indicate it is a PetscObject but its definition is missing a PETSCHEADER as the first struct member. Either replace '_p_' with '_n_' to indicate it is not a PetscObject or add a PETSCHEADER declaration as the first member. 46 47./src/sys/tests/linter/testValidPetscObject.c:3:1 Note: It is ambiguous whether 'dobj' is intended to be a PetscObject. 48--------------------------------------------------------------------------------------------