xref: /petsc/src/sys/tests/linter/output/testValidPetscObject.out (revision 0970d93f389b89d61186faed376e9cc5531f567f)
1<--- FIXED --->
2--------------------------------------------------------------------------------------------
3./src/sys/tests/linter/testValidPetscObject.c:12:25: error: Argument number doesn't match for 'obj'. Expected '1', found '2' [-fmatching-arg-num]:
4  10: {
5  11:   /* incorrect */
6> 12:   PetscValidHeader(obj, 2);
7                              ^
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(PetscObject obj, PetscLinterDummyObj dobj)
15                                      ^^^^^^^^^^^^^^^
16  10: {
17  11:   /* incorrect */
18./src/sys/tests/linter/testValidPetscObject.c:13:26: error: 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, 600);
22                             ^^^
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, PetscLinterDummyObj dobj)
30                                                       ^^^^^^^^^^^^^^^^^^^^^^^^
31  10: {
32  11:   /* incorrect */
33--------------------------------------------------------------------------------------------
34<--- LEFT --->
35--------------------------------------------------------------------------------------------
36./src/sys/tests/linter/testValidPetscObject.c:3:1: error: Invalid type '_p_PetscLinterDummyObj', expected a PetscObject (or derived class) [-fincompatible-type-petscobject]:
37  2:
38> 3: struct _p_PetscLinterDummyObj {
39     ^
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--------------------------------------------------------------------------------------------