<--- FIXED ---> ./src/sys/tests/linter/testTypes.c:3:1: error: Function 'testTypes()' does not appear to be used anywhere outside of testTypes.c, and can be made static [-fstatic-function-candidate]: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:6:21: error: Argument number doesn't match for 'r'. Expected '1', found '-1' [-fmatching-arg-num]: 4: { 5: /* incorrect */ > 6: PetscValidType(r, -1); ^^ 7: PetscCheckSameType(r, -1, v, -1); 8: PetscCheckSameComm(o, -2, f, -2); ./src/sys/tests/linter/testTypes.c:3:26 Note: 'r' is traceable to argument #1 'r' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:7:25: error: Argument number doesn't match for 'r'. Expected '1', found '-1' [-fmatching-arg-num]: 5: /* incorrect */ 6: PetscValidType(r, -1); > 7: PetscCheckSameType(r, -1, v, -1); ^^ 8: PetscCheckSameComm(o, -2, f, -2); 9: PetscCheckSameTypeAndComm(r, -3, f, -3); ./src/sys/tests/linter/testTypes.c:3:26 Note: 'r' is traceable to argument #1 'r' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:7:32: error: Argument number doesn't match for 'v'. Expected '2', found '-1' [-fmatching-arg-num]: 5: /* incorrect */ 6: PetscValidType(r, -1); > 7: PetscCheckSameType(r, -1, v, -1); ^^ 8: PetscCheckSameComm(o, -2, f, -2); 9: PetscCheckSameTypeAndComm(r, -3, f, -3); ./src/sys/tests/linter/testTypes.c:3:41 Note: 'v' is traceable to argument #2 'v' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:8:25: error: Argument number doesn't match for 'o'. Expected '3', found '-2' [-fmatching-arg-num]: 6 : PetscValidType(r, -1); 7 : PetscCheckSameType(r, -1, v, -1); > 8 : PetscCheckSameComm(o, -2, f, -2); ^^ 9 : PetscCheckSameTypeAndComm(r, -3, f, -3); 10: ./src/sys/tests/linter/testTypes.c:3:56 Note: 'o' is traceable to argument #3 'o' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:8:32: error: Argument number doesn't match for 'f'. Expected '4', found '-2' [-fmatching-arg-num]: 6 : PetscValidType(r, -1); 7 : PetscCheckSameType(r, -1, v, -1); > 8 : PetscCheckSameComm(o, -2, f, -2); ^^ 9 : PetscCheckSameTypeAndComm(r, -3, f, -3); 10: ./src/sys/tests/linter/testTypes.c:3:71 Note: 'f' is traceable to argument #4 'f' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:9:32: error: Argument number doesn't match for 'r'. Expected '1', found '-3' [-fmatching-arg-num]: 7 : PetscCheckSameType(r, -1, v, -1); 8 : PetscCheckSameComm(o, -2, f, -2); > 9 : PetscCheckSameTypeAndComm(r, -3, f, -3); ^^ 10: 11: /* correct */ ./src/sys/tests/linter/testTypes.c:3:26 Note: 'r' is traceable to argument #1 'r' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testTypes.c:9:39: error: Argument number doesn't match for 'f'. Expected '4', found '-3' [-fmatching-arg-num]: 7 : PetscCheckSameType(r, -1, v, -1); 8 : PetscCheckSameComm(o, -2, f, -2); > 9 : PetscCheckSameTypeAndComm(r, -3, f, -3); ^^ 10: 11: /* correct */ ./src/sys/tests/linter/testTypes.c:3:71 Note: 'f' is traceable to argument #4 'f' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testTypes(PetscRandom r, PetscViewer v, PetscObject o, PetscFunctionList f) ^^^^^^^^^^^^^^^^^^^ 4: { 5: /* incorrect */ <--- LEFT --->