<--- FIXED ---> -------------------------------------------------------------------------------------------- ./src/sys/tests/linter/testValidPointers.c:6:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 4: { 5: /* incorrect */ > 6: PetscValidCharPointer(a, 2); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 7: PetscValidIntPointer(b, 3); 8: PetscValidBoolPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:6:25 Note: Due to 'a' of type 'void *' 4: { 5: /* incorrect */ > 6: PetscValidCharPointer(a, 2); ^ 7: PetscValidIntPointer(b, 3); 8: PetscValidBoolPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:6:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 4: { 5: /* incorrect */ > 6: PetscValidCharPointer(a, 2); ^ 7: PetscValidIntPointer(b, 3); 8: PetscValidBoolPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:3:34 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:7:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidCharPointer() instead [-fincompatible-function]: 5: /* incorrect */ 6: PetscValidCharPointer(a, 2); > 7: PetscValidIntPointer(b, 3); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 8: PetscValidBoolPointer(c, 4); 9: PetscValidRealPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:7:24 Note: Due to 'b' of type 'char *' 5: /* incorrect */ 6: PetscValidCharPointer(a, 2); > 7: PetscValidIntPointer(b, 3); ^ 8: PetscValidBoolPointer(c, 4); 9: PetscValidRealPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:7:27: error: Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 5: /* incorrect */ 6: PetscValidCharPointer(a, 2); > 7: PetscValidIntPointer(b, 3); ^ 8: PetscValidBoolPointer(c, 4); 9: PetscValidRealPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:3:43 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:8:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 6 : PetscValidCharPointer(a, 2); 7 : PetscValidIntPointer(b, 3); > 8 : PetscValidBoolPointer(c, 4); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:8:25 Note: Due to 'c' of type 'PetscInt *' (a.k.a. 'int *') 6 : PetscValidCharPointer(a, 2); 7 : PetscValidIntPointer(b, 3); > 8 : PetscValidBoolPointer(c, 4); ^ 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:8:28: error: Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 6 : PetscValidCharPointer(a, 2); 7 : PetscValidIntPointer(b, 3); > 8 : PetscValidBoolPointer(c, 4); ^ 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:3:52 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:9:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 7 : PetscValidIntPointer(b, 3); 8 : PetscValidBoolPointer(c, 4); > 9 : PetscValidRealPointer(d, 5); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:9:25 Note: Due to 'd' of type 'PetscMPIInt *' (a.k.a. 'int *') 7 : PetscValidIntPointer(b, 3); 8 : PetscValidBoolPointer(c, 4); > 9 : PetscValidRealPointer(d, 5); ^ 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:9:28: error: Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 7 : PetscValidIntPointer(b, 3); 8 : PetscValidBoolPointer(c, 4); > 9 : PetscValidRealPointer(d, 5); ^ 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:3:65 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:10:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 8 : PetscValidBoolPointer(c, 4); 9 : PetscValidRealPointer(d, 5); > 10: PetscValidScalarPointer(e, 6); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:10:27 Note: Due to 'e' of type 'PetscInt *' (a.k.a. 'int *') 8 : PetscValidBoolPointer(c, 4); 9 : PetscValidRealPointer(d, 5); > 10: PetscValidScalarPointer(e, 6); ^ 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:10:30: error: Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 8 : PetscValidBoolPointer(c, 4); 9 : PetscValidRealPointer(d, 5); > 10: PetscValidScalarPointer(e, 6); ^ 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:3:81 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:11:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]: 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); > 11: PetscValidIntPointer(f, 7); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 12: PetscValidRealPointer(g, 8); 13: PetscValidScalarPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:11:24 Note: Due to 'f' of type 'PetscBool *' 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); > 11: PetscValidIntPointer(f, 7); ^ 12: PetscValidRealPointer(g, 8); 13: PetscValidScalarPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:11:27: error: Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 9 : PetscValidRealPointer(d, 5); 10: PetscValidScalarPointer(e, 6); > 11: PetscValidIntPointer(f, 7); ^ 12: PetscValidRealPointer(g, 8); 13: PetscValidScalarPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:3:94 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:12:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]: 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); > 12: PetscValidRealPointer(g, 8); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13: PetscValidScalarPointer(h, 9); 14: ./src/sys/tests/linter/testValidPointers.c:12:25 Note: Due to 'g' of type 'PetscScalar *' (a.k.a. 'double *') 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); > 12: PetscValidRealPointer(g, 8); ^ 13: PetscValidScalarPointer(h, 9); 14: ./src/sys/tests/linter/testValidPointers.c:12:28: error: Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 10: PetscValidScalarPointer(e, 6); 11: PetscValidIntPointer(f, 7); > 12: PetscValidRealPointer(g, 8); ^ 13: PetscValidScalarPointer(h, 9); 14: ./src/sys/tests/linter/testValidPointers.c:3:108 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:13:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidRealPointer() instead [-fincompatible-function]: 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); > 13: PetscValidScalarPointer(h, 9); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidPointers.c:13:27 Note: Due to 'h' of type 'PetscReal *' (a.k.a. 'double *') 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); > 13: PetscValidScalarPointer(h, 9); ^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidPointers.c:13:30: error: Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 11: PetscValidIntPointer(f, 7); 12: PetscValidRealPointer(g, 8); > 13: PetscValidScalarPointer(h, 9); ^ 14: 15: /* correct */ ./src/sys/tests/linter/testValidPointers.c:3:124 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 1: #include 2: > 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^ 4: { 5: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:30:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 28: { 29: /* incorrect */ > 30: PetscValidCharPointer(a, 2); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:30:25 Note: Due to 'a' of type 'void *' 28: { 29: /* incorrect */ > 30: PetscValidCharPointer(a, 2); ^ 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:30:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 28: { 29: /* incorrect */ > 30: PetscValidCharPointer(a, 2); ^ 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); ./src/sys/tests/linter/testValidPointers.c:27:25 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:31:3: error: Incorrect use of PetscValidPointer(), use PetscValidCharPointer() instead [-fincompatible-function]: 29: /* incorrect */ 30: PetscValidCharPointer(a, 2); > 31: PetscValidPointer(b, 3); ^^^^^^^^^^^^^^^^^^^^^^^ 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:31:21 Note: Due to 'b' of type 'char *' 29: /* incorrect */ 30: PetscValidCharPointer(a, 2); > 31: PetscValidPointer(b, 3); ^ 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:31:24: error: Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 29: /* incorrect */ 30: PetscValidCharPointer(a, 2); > 31: PetscValidPointer(b, 3); ^ 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); ./src/sys/tests/linter/testValidPointers.c:27:34 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:32:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 30: PetscValidCharPointer(a, 2); 31: PetscValidPointer(b, 3); > 32: PetscValidPointer(c, 4); ^^^^^^^^^^^^^^^^^^^^^^^ 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:32:21 Note: Due to 'c' of type 'PetscInt *' (a.k.a. 'int *') 30: PetscValidCharPointer(a, 2); 31: PetscValidPointer(b, 3); > 32: PetscValidPointer(c, 4); ^ 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:32:24: error: Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 30: PetscValidCharPointer(a, 2); 31: PetscValidPointer(b, 3); > 32: PetscValidPointer(c, 4); ^ 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); ./src/sys/tests/linter/testValidPointers.c:27:43 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:33:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); > 33: PetscValidPointer(d, 5); ^^^^^^^^^^^^^^^^^^^^^^^ 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:33:21 Note: Due to 'd' of type 'PetscMPIInt *' (a.k.a. 'int *') 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); > 33: PetscValidPointer(d, 5); ^ 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:33:24: error: Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 31: PetscValidPointer(b, 3); 32: PetscValidPointer(c, 4); > 33: PetscValidPointer(d, 5); ^ 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); ./src/sys/tests/linter/testValidPointers.c:27:56 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:34:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); > 34: PetscValidPointer(e, 6); ^^^^^^^^^^^^^^^^^^^^^^^ 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:34:21 Note: Due to 'e' of type 'PetscInt *' (a.k.a. 'int *') 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); > 34: PetscValidPointer(e, 6); ^ 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:34:24: error: Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 32: PetscValidPointer(c, 4); 33: PetscValidPointer(d, 5); > 34: PetscValidPointer(e, 6); ^ 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); ./src/sys/tests/linter/testValidPointers.c:27:72 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:35:3: error: Incorrect use of PetscValidPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]: 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); > 35: PetscValidPointer(f, 7); ^^^^^^^^^^^^^^^^^^^^^^^ 36: PetscValidPointer(g, 8); 37: PetscValidPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:35:21 Note: Due to 'f' of type 'PetscBool *' 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); > 35: PetscValidPointer(f, 7); ^ 36: PetscValidPointer(g, 8); 37: PetscValidPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:35:24: error: Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 33: PetscValidPointer(d, 5); 34: PetscValidPointer(e, 6); > 35: PetscValidPointer(f, 7); ^ 36: PetscValidPointer(g, 8); 37: PetscValidPointer(h, 9); ./src/sys/tests/linter/testValidPointers.c:27:85 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:36:3: error: Incorrect use of PetscValidPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]: 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); > 36: PetscValidPointer(g, 8); ^^^^^^^^^^^^^^^^^^^^^^^ 37: PetscValidPointer(h, 9); 38: ./src/sys/tests/linter/testValidPointers.c:36:21 Note: Due to 'g' of type 'PetscScalar *' (a.k.a. 'double *') 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); > 36: PetscValidPointer(g, 8); ^ 37: PetscValidPointer(h, 9); 38: ./src/sys/tests/linter/testValidPointers.c:36:24: error: Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 34: PetscValidPointer(e, 6); 35: PetscValidPointer(f, 7); > 36: PetscValidPointer(g, 8); ^ 37: PetscValidPointer(h, 9); 38: ./src/sys/tests/linter/testValidPointers.c:27:99 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:37:3: error: Incorrect use of PetscValidPointer(), use PetscValidRealPointer() instead [-fincompatible-function]: 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); > 37: PetscValidPointer(h, 9); ^^^^^^^^^^^^^^^^^^^^^^^ 38: 39: /* correct */ ./src/sys/tests/linter/testValidPointers.c:37:21 Note: Due to 'h' of type 'PetscReal *' (a.k.a. 'double *') 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); > 37: PetscValidPointer(h, 9); ^ 38: 39: /* correct */ ./src/sys/tests/linter/testValidPointers.c:37:24: error: Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 35: PetscValidPointer(f, 7); 36: PetscValidPointer(g, 8); > 37: PetscValidPointer(h, 9); ^ 38: 39: /* correct */ ./src/sys/tests/linter/testValidPointers.c:27:115 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 25: } 26: > 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) ^^^^^^^^^^^^ 28: { 29: /* incorrect */ ./src/sys/tests/linter/testValidPointers.c:54:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 52: { 53: /* incorrect */ > 54: PetscValidCharPointer(a, 1); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 55: PetscValidCharPointer(b, 2); 56: PetscValidIntPointer(c, 3); ./src/sys/tests/linter/testValidPointers.c:54:25 Note: Due to 'a' of type 'void **' 52: { 53: /* incorrect */ > 54: PetscValidCharPointer(a, 1); ^ 55: PetscValidCharPointer(b, 2); 56: PetscValidIntPointer(c, 3); ./src/sys/tests/linter/testValidPointers.c:55:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 53: /* incorrect */ 54: PetscValidCharPointer(a, 1); > 55: PetscValidCharPointer(b, 2); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 56: PetscValidIntPointer(c, 3); 57: PetscValidIntPointer(d, 4); ./src/sys/tests/linter/testValidPointers.c:55:25 Note: Due to 'b' of type 'char **' 53: /* incorrect */ 54: PetscValidCharPointer(a, 1); > 55: PetscValidCharPointer(b, 2); ^ 56: PetscValidIntPointer(c, 3); 57: PetscValidIntPointer(d, 4); ./src/sys/tests/linter/testValidPointers.c:56:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 54: PetscValidCharPointer(a, 1); 55: PetscValidCharPointer(b, 2); > 56: PetscValidIntPointer(c, 3); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 57: PetscValidIntPointer(d, 4); 58: PetscValidIntPointer(e, 5); ./src/sys/tests/linter/testValidPointers.c:56:24 Note: Due to 'c' of type 'PetscInt **' (a.k.a. 'int **') 54: PetscValidCharPointer(a, 1); 55: PetscValidCharPointer(b, 2); > 56: PetscValidIntPointer(c, 3); ^ 57: PetscValidIntPointer(d, 4); 58: PetscValidIntPointer(e, 5); ./src/sys/tests/linter/testValidPointers.c:57:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 55: PetscValidCharPointer(b, 2); 56: PetscValidIntPointer(c, 3); > 57: PetscValidIntPointer(d, 4); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 58: PetscValidIntPointer(e, 5); 59: PetscValidBoolPointer(f, 6); ./src/sys/tests/linter/testValidPointers.c:57:24 Note: Due to 'd' of type 'PetscMPIInt **' (a.k.a. 'int **') 55: PetscValidCharPointer(b, 2); 56: PetscValidIntPointer(c, 3); > 57: PetscValidIntPointer(d, 4); ^ 58: PetscValidIntPointer(e, 5); 59: PetscValidBoolPointer(f, 6); ./src/sys/tests/linter/testValidPointers.c:58:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 56: PetscValidIntPointer(c, 3); 57: PetscValidIntPointer(d, 4); > 58: PetscValidIntPointer(e, 5); ^^^^^^^^^^^^^^^^^^^^^^^^^^ 59: PetscValidBoolPointer(f, 6); 60: PetscValidScalarPointer(g, 7); ./src/sys/tests/linter/testValidPointers.c:58:24 Note: Due to 'e' of type 'PetscInt **' (a.k.a. 'int **') 56: PetscValidIntPointer(c, 3); 57: PetscValidIntPointer(d, 4); > 58: PetscValidIntPointer(e, 5); ^ 59: PetscValidBoolPointer(f, 6); 60: PetscValidScalarPointer(g, 7); ./src/sys/tests/linter/testValidPointers.c:59:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidPointer() instead [-fincompatible-function]: 57: PetscValidIntPointer(d, 4); 58: PetscValidIntPointer(e, 5); > 59: PetscValidBoolPointer(f, 6); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60: PetscValidScalarPointer(g, 7); 61: PetscValidRealPointer(h, 8); ./src/sys/tests/linter/testValidPointers.c:59:25 Note: Due to 'f' of type 'PetscBool **' 57: PetscValidIntPointer(d, 4); 58: PetscValidIntPointer(e, 5); > 59: PetscValidBoolPointer(f, 6); ^ 60: PetscValidScalarPointer(g, 7); 61: PetscValidRealPointer(h, 8); ./src/sys/tests/linter/testValidPointers.c:60:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidPointer() instead [-fincompatible-function]: 58: PetscValidIntPointer(e, 5); 59: PetscValidBoolPointer(f, 6); > 60: PetscValidScalarPointer(g, 7); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 61: PetscValidRealPointer(h, 8); 62: ./src/sys/tests/linter/testValidPointers.c:60:27 Note: Due to 'g' of type 'PetscScalar **' (a.k.a. 'double **') 58: PetscValidIntPointer(e, 5); 59: PetscValidBoolPointer(f, 6); > 60: PetscValidScalarPointer(g, 7); ^ 61: PetscValidRealPointer(h, 8); 62: ./src/sys/tests/linter/testValidPointers.c:61:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidPointer() instead [-fincompatible-function]: 59: PetscValidBoolPointer(f, 6); 60: PetscValidScalarPointer(g, 7); > 61: PetscValidRealPointer(h, 8); ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 62: 63: /* correct */ ./src/sys/tests/linter/testValidPointers.c:61:25 Note: Due to 'h' of type 'PetscReal **' (a.k.a. 'double **') 59: PetscValidBoolPointer(f, 6); 60: PetscValidScalarPointer(g, 7); > 61: PetscValidRealPointer(h, 8); ^ 62: 63: /* correct */ -------------------------------------------------------------------------------------------- <--- LEFT --->