1<--- FIXED ---> 2-------------------------------------------------------------------------------------------- 3[31m[1m./src/sys/tests/linter/testValidPointers.c:6:3: error:[0m Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 4 4: { 5 5: /* incorrect */ 6> 6: [33m[1mPetscValidCharPointer(a, 2)[0m; 7 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 8 7: PetscValidIntPointer(b, 3); 9 8: PetscValidBoolPointer(c, 4); 10 11./src/sys/tests/linter/testValidPointers.c:6:25 Note: Due to 'a' of type 'void *' 12 4: { 13 5: /* incorrect */ 14> 6: PetscValidCharPointer([33m[1ma[0m, 2); 15 [33m[1m^[0m 16 7: PetscValidIntPointer(b, 3); 17 8: PetscValidBoolPointer(c, 4); 18 19[31m[1m./src/sys/tests/linter/testValidPointers.c:6:28: error:[0m Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 20 4: { 21 5: /* incorrect */ 22> 6: PetscValidCharPointer(a, [33m[1m2[0m); 23 [33m[1m^[0m 24 7: PetscValidIntPointer(b, 3); 25 8: PetscValidBoolPointer(c, 4); 26 27./src/sys/tests/linter/testValidPointers.c:3:34 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 28 1: #include <petsc/private/petscimpl.h> 29 2: 30> 3: PetscErrorCode testValidPointers([33m[1mvoid *a[0m, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 31 [33m[1m^^^^^^^[0m 32 4: { 33 5: /* incorrect */ 34[31m[1m./src/sys/tests/linter/testValidPointers.c:7:3: error:[0m Incorrect use of PetscValidIntPointer(), use PetscValidCharPointer() instead [-fincompatible-function]: 35 5: /* incorrect */ 36 6: PetscValidCharPointer(a, 2); 37> 7: [33m[1mPetscValidIntPointer(b, 3)[0m; 38 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 39 8: PetscValidBoolPointer(c, 4); 40 9: PetscValidRealPointer(d, 5); 41 42./src/sys/tests/linter/testValidPointers.c:7:24 Note: Due to 'b' of type 'char *' 43 5: /* incorrect */ 44 6: PetscValidCharPointer(a, 2); 45> 7: PetscValidIntPointer([33m[1mb[0m, 3); 46 [33m[1m^[0m 47 8: PetscValidBoolPointer(c, 4); 48 9: PetscValidRealPointer(d, 5); 49 50[31m[1m./src/sys/tests/linter/testValidPointers.c:7:27: error:[0m Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 51 5: /* incorrect */ 52 6: PetscValidCharPointer(a, 2); 53> 7: PetscValidIntPointer(b, [33m[1m3[0m); 54 [33m[1m^[0m 55 8: PetscValidBoolPointer(c, 4); 56 9: PetscValidRealPointer(d, 5); 57 58./src/sys/tests/linter/testValidPointers.c:3:43 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 59 1: #include <petsc/private/petscimpl.h> 60 2: 61> 3: PetscErrorCode testValidPointers(void *a, [33m[1mchar *b[0m, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 62 [33m[1m^^^^^^^[0m 63 4: { 64 5: /* incorrect */ 65[31m[1m./src/sys/tests/linter/testValidPointers.c:8:3: error:[0m Incorrect use of PetscValidBoolPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 66 6 : PetscValidCharPointer(a, 2); 67 7 : PetscValidIntPointer(b, 3); 68> 8 : [33m[1mPetscValidBoolPointer(c, 4)[0m; 69 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 70 9 : PetscValidRealPointer(d, 5); 71 10: PetscValidScalarPointer(e, 6); 72 73./src/sys/tests/linter/testValidPointers.c:8:25 Note: Due to 'c' of type 'PetscInt *' (a.k.a. 'int *') 74 6 : PetscValidCharPointer(a, 2); 75 7 : PetscValidIntPointer(b, 3); 76> 8 : PetscValidBoolPointer([33m[1mc[0m, 4); 77 [33m[1m^[0m 78 9 : PetscValidRealPointer(d, 5); 79 10: PetscValidScalarPointer(e, 6); 80 81[31m[1m./src/sys/tests/linter/testValidPointers.c:8:28: error:[0m Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 82 6 : PetscValidCharPointer(a, 2); 83 7 : PetscValidIntPointer(b, 3); 84> 8 : PetscValidBoolPointer(c, [33m[1m4[0m); 85 [33m[1m^[0m 86 9 : PetscValidRealPointer(d, 5); 87 10: PetscValidScalarPointer(e, 6); 88 89./src/sys/tests/linter/testValidPointers.c:3:52 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 90 1: #include <petsc/private/petscimpl.h> 91 2: 92> 3: PetscErrorCode testValidPointers(void *a, char *b, [33m[1mPetscInt *c[0m, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 93 [33m[1m^^^^^^^^^^^[0m 94 4: { 95 5: /* incorrect */ 96[31m[1m./src/sys/tests/linter/testValidPointers.c:9:3: error:[0m Incorrect use of PetscValidRealPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 97 7 : PetscValidIntPointer(b, 3); 98 8 : PetscValidBoolPointer(c, 4); 99> 9 : [33m[1mPetscValidRealPointer(d, 5)[0m; 100 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 101 10: PetscValidScalarPointer(e, 6); 102 11: PetscValidIntPointer(f, 7); 103 104./src/sys/tests/linter/testValidPointers.c:9:25 Note: Due to 'd' of type 'PetscMPIInt *' (a.k.a. 'int *') 105 7 : PetscValidIntPointer(b, 3); 106 8 : PetscValidBoolPointer(c, 4); 107> 9 : PetscValidRealPointer([33m[1md[0m, 5); 108 [33m[1m^[0m 109 10: PetscValidScalarPointer(e, 6); 110 11: PetscValidIntPointer(f, 7); 111 112[31m[1m./src/sys/tests/linter/testValidPointers.c:9:28: error:[0m Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 113 7 : PetscValidIntPointer(b, 3); 114 8 : PetscValidBoolPointer(c, 4); 115> 9 : PetscValidRealPointer(d, [33m[1m5[0m); 116 [33m[1m^[0m 117 10: PetscValidScalarPointer(e, 6); 118 11: PetscValidIntPointer(f, 7); 119 120./src/sys/tests/linter/testValidPointers.c:3:65 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 121 1: #include <petsc/private/petscimpl.h> 122 2: 123> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, [33m[1mPetscMPIInt *d[0m, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 124 [33m[1m^^^^^^^^^^^^^^[0m 125 4: { 126 5: /* incorrect */ 127[31m[1m./src/sys/tests/linter/testValidPointers.c:10:3: error:[0m Incorrect use of PetscValidScalarPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 128 8 : PetscValidBoolPointer(c, 4); 129 9 : PetscValidRealPointer(d, 5); 130> 10: [33m[1mPetscValidScalarPointer(e, 6)[0m; 131 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 132 11: PetscValidIntPointer(f, 7); 133 12: PetscValidRealPointer(g, 8); 134 135./src/sys/tests/linter/testValidPointers.c:10:27 Note: Due to 'e' of type 'PetscInt *' (a.k.a. 'int *') 136 8 : PetscValidBoolPointer(c, 4); 137 9 : PetscValidRealPointer(d, 5); 138> 10: PetscValidScalarPointer([33m[1me[0m, 6); 139 [33m[1m^[0m 140 11: PetscValidIntPointer(f, 7); 141 12: PetscValidRealPointer(g, 8); 142 143[31m[1m./src/sys/tests/linter/testValidPointers.c:10:30: error:[0m Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 144 8 : PetscValidBoolPointer(c, 4); 145 9 : PetscValidRealPointer(d, 5); 146> 10: PetscValidScalarPointer(e, [33m[1m6[0m); 147 [33m[1m^[0m 148 11: PetscValidIntPointer(f, 7); 149 12: PetscValidRealPointer(g, 8); 150 151./src/sys/tests/linter/testValidPointers.c:3:81 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 152 1: #include <petsc/private/petscimpl.h> 153 2: 154> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, [33m[1mPetscInt *e[0m, PetscBool *f, PetscScalar *g, PetscReal *h) 155 [33m[1m^^^^^^^^^^^[0m 156 4: { 157 5: /* incorrect */ 158[31m[1m./src/sys/tests/linter/testValidPointers.c:11:3: error:[0m Incorrect use of PetscValidIntPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]: 159 9 : PetscValidRealPointer(d, 5); 160 10: PetscValidScalarPointer(e, 6); 161> 11: [33m[1mPetscValidIntPointer(f, 7)[0m; 162 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 163 12: PetscValidRealPointer(g, 8); 164 13: PetscValidScalarPointer(h, 9); 165 166./src/sys/tests/linter/testValidPointers.c:11:24 Note: Due to 'f' of type 'PetscBool *' 167 9 : PetscValidRealPointer(d, 5); 168 10: PetscValidScalarPointer(e, 6); 169> 11: PetscValidIntPointer([33m[1mf[0m, 7); 170 [33m[1m^[0m 171 12: PetscValidRealPointer(g, 8); 172 13: PetscValidScalarPointer(h, 9); 173 174[31m[1m./src/sys/tests/linter/testValidPointers.c:11:27: error:[0m Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 175 9 : PetscValidRealPointer(d, 5); 176 10: PetscValidScalarPointer(e, 6); 177> 11: PetscValidIntPointer(f, [33m[1m7[0m); 178 [33m[1m^[0m 179 12: PetscValidRealPointer(g, 8); 180 13: PetscValidScalarPointer(h, 9); 181 182./src/sys/tests/linter/testValidPointers.c:3:94 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 183 1: #include <petsc/private/petscimpl.h> 184 2: 185> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, [33m[1mPetscBool *f[0m, PetscScalar *g, PetscReal *h) 186 [33m[1m^^^^^^^^^^^^[0m 187 4: { 188 5: /* incorrect */ 189[31m[1m./src/sys/tests/linter/testValidPointers.c:12:3: error:[0m Incorrect use of PetscValidRealPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]: 190 10: PetscValidScalarPointer(e, 6); 191 11: PetscValidIntPointer(f, 7); 192> 12: [33m[1mPetscValidRealPointer(g, 8)[0m; 193 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 194 13: PetscValidScalarPointer(h, 9); 195 14: 196 197./src/sys/tests/linter/testValidPointers.c:12:25 Note: Due to 'g' of type 'PetscScalar *' (a.k.a. 'double *') 198 10: PetscValidScalarPointer(e, 6); 199 11: PetscValidIntPointer(f, 7); 200> 12: PetscValidRealPointer([33m[1mg[0m, 8); 201 [33m[1m^[0m 202 13: PetscValidScalarPointer(h, 9); 203 14: 204 205[31m[1m./src/sys/tests/linter/testValidPointers.c:12:28: error:[0m Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 206 10: PetscValidScalarPointer(e, 6); 207 11: PetscValidIntPointer(f, 7); 208> 12: PetscValidRealPointer(g, [33m[1m8[0m); 209 [33m[1m^[0m 210 13: PetscValidScalarPointer(h, 9); 211 14: 212 213./src/sys/tests/linter/testValidPointers.c:3:108 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 214 1: #include <petsc/private/petscimpl.h> 215 2: 216> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, [33m[1mPetscScalar *g[0m, PetscReal *h) 217 [33m[1m^^^^^^^^^^^^^^[0m 218 4: { 219 5: /* incorrect */ 220[31m[1m./src/sys/tests/linter/testValidPointers.c:13:3: error:[0m Incorrect use of PetscValidScalarPointer(), use PetscValidRealPointer() instead [-fincompatible-function]: 221 11: PetscValidIntPointer(f, 7); 222 12: PetscValidRealPointer(g, 8); 223> 13: [33m[1mPetscValidScalarPointer(h, 9)[0m; 224 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 225 14: 226 15: /* correct */ 227 228./src/sys/tests/linter/testValidPointers.c:13:27 Note: Due to 'h' of type 'PetscReal *' (a.k.a. 'double *') 229 11: PetscValidIntPointer(f, 7); 230 12: PetscValidRealPointer(g, 8); 231> 13: PetscValidScalarPointer([33m[1mh[0m, 9); 232 [33m[1m^[0m 233 14: 234 15: /* correct */ 235 236[31m[1m./src/sys/tests/linter/testValidPointers.c:13:30: error:[0m Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 237 11: PetscValidIntPointer(f, 7); 238 12: PetscValidRealPointer(g, 8); 239> 13: PetscValidScalarPointer(h, [33m[1m9[0m); 240 [33m[1m^[0m 241 14: 242 15: /* correct */ 243 244./src/sys/tests/linter/testValidPointers.c:3:124 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 245 1: #include <petsc/private/petscimpl.h> 246 2: 247> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, [33m[1mPetscReal *h[0m) 248 [33m[1m^^^^^^^^^^^^[0m 249 4: { 250 5: /* incorrect */ 251[31m[1m./src/sys/tests/linter/testValidPointers.c:30:3: error:[0m Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 252 28: { 253 29: /* incorrect */ 254> 30: [33m[1mPetscValidCharPointer(a, 2)[0m; 255 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 256 31: PetscValidPointer(b, 3); 257 32: PetscValidPointer(c, 4); 258 259./src/sys/tests/linter/testValidPointers.c:30:25 Note: Due to 'a' of type 'void *' 260 28: { 261 29: /* incorrect */ 262> 30: PetscValidCharPointer([33m[1ma[0m, 2); 263 [33m[1m^[0m 264 31: PetscValidPointer(b, 3); 265 32: PetscValidPointer(c, 4); 266 267[31m[1m./src/sys/tests/linter/testValidPointers.c:30:28: error:[0m Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 268 28: { 269 29: /* incorrect */ 270> 30: PetscValidCharPointer(a, [33m[1m2[0m); 271 [33m[1m^[0m 272 31: PetscValidPointer(b, 3); 273 32: PetscValidPointer(c, 4); 274 275./src/sys/tests/linter/testValidPointers.c:27:25 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 276 25: } 277 26: 278> 27: void testValidPointers2([33m[1mvoid *a[0m, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 279 [33m[1m^^^^^^^[0m 280 28: { 281 29: /* incorrect */ 282[31m[1m./src/sys/tests/linter/testValidPointers.c:31:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidCharPointer() instead [-fincompatible-function]: 283 29: /* incorrect */ 284 30: PetscValidCharPointer(a, 2); 285> 31: [33m[1mPetscValidPointer(b, 3)[0m; 286 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 287 32: PetscValidPointer(c, 4); 288 33: PetscValidPointer(d, 5); 289 290./src/sys/tests/linter/testValidPointers.c:31:21 Note: Due to 'b' of type 'char *' 291 29: /* incorrect */ 292 30: PetscValidCharPointer(a, 2); 293> 31: PetscValidPointer([33m[1mb[0m, 3); 294 [33m[1m^[0m 295 32: PetscValidPointer(c, 4); 296 33: PetscValidPointer(d, 5); 297 298[31m[1m./src/sys/tests/linter/testValidPointers.c:31:24: error:[0m Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 299 29: /* incorrect */ 300 30: PetscValidCharPointer(a, 2); 301> 31: PetscValidPointer(b, [33m[1m3[0m); 302 [33m[1m^[0m 303 32: PetscValidPointer(c, 4); 304 33: PetscValidPointer(d, 5); 305 306./src/sys/tests/linter/testValidPointers.c:27:34 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 307 25: } 308 26: 309> 27: void testValidPointers2(void *a, [33m[1mchar *b[0m, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 310 [33m[1m^^^^^^^[0m 311 28: { 312 29: /* incorrect */ 313[31m[1m./src/sys/tests/linter/testValidPointers.c:32:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 314 30: PetscValidCharPointer(a, 2); 315 31: PetscValidPointer(b, 3); 316> 32: [33m[1mPetscValidPointer(c, 4)[0m; 317 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 318 33: PetscValidPointer(d, 5); 319 34: PetscValidPointer(e, 6); 320 321./src/sys/tests/linter/testValidPointers.c:32:21 Note: Due to 'c' of type 'PetscInt *' (a.k.a. 'int *') 322 30: PetscValidCharPointer(a, 2); 323 31: PetscValidPointer(b, 3); 324> 32: PetscValidPointer([33m[1mc[0m, 4); 325 [33m[1m^[0m 326 33: PetscValidPointer(d, 5); 327 34: PetscValidPointer(e, 6); 328 329[31m[1m./src/sys/tests/linter/testValidPointers.c:32:24: error:[0m Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 330 30: PetscValidCharPointer(a, 2); 331 31: PetscValidPointer(b, 3); 332> 32: PetscValidPointer(c, [33m[1m4[0m); 333 [33m[1m^[0m 334 33: PetscValidPointer(d, 5); 335 34: PetscValidPointer(e, 6); 336 337./src/sys/tests/linter/testValidPointers.c:27:43 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 338 25: } 339 26: 340> 27: void testValidPointers2(void *a, char *b, [33m[1mPetscInt *c[0m, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 341 [33m[1m^^^^^^^^^^^[0m 342 28: { 343 29: /* incorrect */ 344[31m[1m./src/sys/tests/linter/testValidPointers.c:33:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 345 31: PetscValidPointer(b, 3); 346 32: PetscValidPointer(c, 4); 347> 33: [33m[1mPetscValidPointer(d, 5)[0m; 348 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 349 34: PetscValidPointer(e, 6); 350 35: PetscValidPointer(f, 7); 351 352./src/sys/tests/linter/testValidPointers.c:33:21 Note: Due to 'd' of type 'PetscMPIInt *' (a.k.a. 'int *') 353 31: PetscValidPointer(b, 3); 354 32: PetscValidPointer(c, 4); 355> 33: PetscValidPointer([33m[1md[0m, 5); 356 [33m[1m^[0m 357 34: PetscValidPointer(e, 6); 358 35: PetscValidPointer(f, 7); 359 360[31m[1m./src/sys/tests/linter/testValidPointers.c:33:24: error:[0m Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 361 31: PetscValidPointer(b, 3); 362 32: PetscValidPointer(c, 4); 363> 33: PetscValidPointer(d, [33m[1m5[0m); 364 [33m[1m^[0m 365 34: PetscValidPointer(e, 6); 366 35: PetscValidPointer(f, 7); 367 368./src/sys/tests/linter/testValidPointers.c:27:56 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 369 25: } 370 26: 371> 27: void testValidPointers2(void *a, char *b, PetscInt *c, [33m[1mPetscMPIInt *d[0m, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 372 [33m[1m^^^^^^^^^^^^^^[0m 373 28: { 374 29: /* incorrect */ 375[31m[1m./src/sys/tests/linter/testValidPointers.c:34:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]: 376 32: PetscValidPointer(c, 4); 377 33: PetscValidPointer(d, 5); 378> 34: [33m[1mPetscValidPointer(e, 6)[0m; 379 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 380 35: PetscValidPointer(f, 7); 381 36: PetscValidPointer(g, 8); 382 383./src/sys/tests/linter/testValidPointers.c:34:21 Note: Due to 'e' of type 'PetscInt *' (a.k.a. 'int *') 384 32: PetscValidPointer(c, 4); 385 33: PetscValidPointer(d, 5); 386> 34: PetscValidPointer([33m[1me[0m, 6); 387 [33m[1m^[0m 388 35: PetscValidPointer(f, 7); 389 36: PetscValidPointer(g, 8); 390 391[31m[1m./src/sys/tests/linter/testValidPointers.c:34:24: error:[0m Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 392 32: PetscValidPointer(c, 4); 393 33: PetscValidPointer(d, 5); 394> 34: PetscValidPointer(e, [33m[1m6[0m); 395 [33m[1m^[0m 396 35: PetscValidPointer(f, 7); 397 36: PetscValidPointer(g, 8); 398 399./src/sys/tests/linter/testValidPointers.c:27:72 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 400 25: } 401 26: 402> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, [33m[1mPetscInt *e[0m, PetscBool *f, PetscScalar *g, PetscReal *h) 403 [33m[1m^^^^^^^^^^^[0m 404 28: { 405 29: /* incorrect */ 406[31m[1m./src/sys/tests/linter/testValidPointers.c:35:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]: 407 33: PetscValidPointer(d, 5); 408 34: PetscValidPointer(e, 6); 409> 35: [33m[1mPetscValidPointer(f, 7)[0m; 410 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 411 36: PetscValidPointer(g, 8); 412 37: PetscValidPointer(h, 9); 413 414./src/sys/tests/linter/testValidPointers.c:35:21 Note: Due to 'f' of type 'PetscBool *' 415 33: PetscValidPointer(d, 5); 416 34: PetscValidPointer(e, 6); 417> 35: PetscValidPointer([33m[1mf[0m, 7); 418 [33m[1m^[0m 419 36: PetscValidPointer(g, 8); 420 37: PetscValidPointer(h, 9); 421 422[31m[1m./src/sys/tests/linter/testValidPointers.c:35:24: error:[0m Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 423 33: PetscValidPointer(d, 5); 424 34: PetscValidPointer(e, 6); 425> 35: PetscValidPointer(f, [33m[1m7[0m); 426 [33m[1m^[0m 427 36: PetscValidPointer(g, 8); 428 37: PetscValidPointer(h, 9); 429 430./src/sys/tests/linter/testValidPointers.c:27:85 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 431 25: } 432 26: 433> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, [33m[1mPetscBool *f[0m, PetscScalar *g, PetscReal *h) 434 [33m[1m^^^^^^^^^^^^[0m 435 28: { 436 29: /* incorrect */ 437[31m[1m./src/sys/tests/linter/testValidPointers.c:36:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]: 438 34: PetscValidPointer(e, 6); 439 35: PetscValidPointer(f, 7); 440> 36: [33m[1mPetscValidPointer(g, 8)[0m; 441 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 442 37: PetscValidPointer(h, 9); 443 38: 444 445./src/sys/tests/linter/testValidPointers.c:36:21 Note: Due to 'g' of type 'PetscScalar *' (a.k.a. 'double *') 446 34: PetscValidPointer(e, 6); 447 35: PetscValidPointer(f, 7); 448> 36: PetscValidPointer([33m[1mg[0m, 8); 449 [33m[1m^[0m 450 37: PetscValidPointer(h, 9); 451 38: 452 453[31m[1m./src/sys/tests/linter/testValidPointers.c:36:24: error:[0m Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 454 34: PetscValidPointer(e, 6); 455 35: PetscValidPointer(f, 7); 456> 36: PetscValidPointer(g, [33m[1m8[0m); 457 [33m[1m^[0m 458 37: PetscValidPointer(h, 9); 459 38: 460 461./src/sys/tests/linter/testValidPointers.c:27:99 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 462 25: } 463 26: 464> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, [33m[1mPetscScalar *g[0m, PetscReal *h) 465 [33m[1m^^^^^^^^^^^^^^[0m 466 28: { 467 29: /* incorrect */ 468[31m[1m./src/sys/tests/linter/testValidPointers.c:37:3: error:[0m Incorrect use of PetscValidPointer(), use PetscValidRealPointer() instead [-fincompatible-function]: 469 35: PetscValidPointer(f, 7); 470 36: PetscValidPointer(g, 8); 471> 37: [33m[1mPetscValidPointer(h, 9)[0m; 472 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^[0m 473 38: 474 39: /* correct */ 475 476./src/sys/tests/linter/testValidPointers.c:37:21 Note: Due to 'h' of type 'PetscReal *' (a.k.a. 'double *') 477 35: PetscValidPointer(f, 7); 478 36: PetscValidPointer(g, 8); 479> 37: PetscValidPointer([33m[1mh[0m, 9); 480 [33m[1m^[0m 481 38: 482 39: /* correct */ 483 484[31m[1m./src/sys/tests/linter/testValidPointers.c:37:24: error:[0m Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 485 35: PetscValidPointer(f, 7); 486 36: PetscValidPointer(g, 8); 487> 37: PetscValidPointer(h, [33m[1m9[0m); 488 [33m[1m^[0m 489 38: 490 39: /* correct */ 491 492./src/sys/tests/linter/testValidPointers.c:27:115 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 493 25: } 494 26: 495> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, [33m[1mPetscReal *h[0m) 496 [33m[1m^^^^^^^^^^^^[0m 497 28: { 498 29: /* incorrect */ 499[31m[1m./src/sys/tests/linter/testValidPointers.c:54:3: error:[0m Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 500 52: { 501 53: /* incorrect */ 502> 54: [33m[1mPetscValidCharPointer(a, 1)[0m; 503 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 504 55: PetscValidCharPointer(b, 2); 505 56: PetscValidIntPointer(c, 3); 506 507./src/sys/tests/linter/testValidPointers.c:54:25 Note: Due to 'a' of type 'void **' 508 52: { 509 53: /* incorrect */ 510> 54: PetscValidCharPointer([33m[1ma[0m, 1); 511 [33m[1m^[0m 512 55: PetscValidCharPointer(b, 2); 513 56: PetscValidIntPointer(c, 3); 514 515[31m[1m./src/sys/tests/linter/testValidPointers.c:55:3: error:[0m Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]: 516 53: /* incorrect */ 517 54: PetscValidCharPointer(a, 1); 518> 55: [33m[1mPetscValidCharPointer(b, 2)[0m; 519 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 520 56: PetscValidIntPointer(c, 3); 521 57: PetscValidIntPointer(d, 4); 522 523./src/sys/tests/linter/testValidPointers.c:55:25 Note: Due to 'b' of type 'char **' 524 53: /* incorrect */ 525 54: PetscValidCharPointer(a, 1); 526> 55: PetscValidCharPointer([33m[1mb[0m, 2); 527 [33m[1m^[0m 528 56: PetscValidIntPointer(c, 3); 529 57: PetscValidIntPointer(d, 4); 530 531[31m[1m./src/sys/tests/linter/testValidPointers.c:56:3: error:[0m Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 532 54: PetscValidCharPointer(a, 1); 533 55: PetscValidCharPointer(b, 2); 534> 56: [33m[1mPetscValidIntPointer(c, 3)[0m; 535 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 536 57: PetscValidIntPointer(d, 4); 537 58: PetscValidIntPointer(e, 5); 538 539./src/sys/tests/linter/testValidPointers.c:56:24 Note: Due to 'c' of type 'PetscInt **' (a.k.a. 'int **') 540 54: PetscValidCharPointer(a, 1); 541 55: PetscValidCharPointer(b, 2); 542> 56: PetscValidIntPointer([33m[1mc[0m, 3); 543 [33m[1m^[0m 544 57: PetscValidIntPointer(d, 4); 545 58: PetscValidIntPointer(e, 5); 546 547[31m[1m./src/sys/tests/linter/testValidPointers.c:57:3: error:[0m Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 548 55: PetscValidCharPointer(b, 2); 549 56: PetscValidIntPointer(c, 3); 550> 57: [33m[1mPetscValidIntPointer(d, 4)[0m; 551 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 552 58: PetscValidIntPointer(e, 5); 553 59: PetscValidBoolPointer(f, 6); 554 555./src/sys/tests/linter/testValidPointers.c:57:24 Note: Due to 'd' of type 'PetscMPIInt **' (a.k.a. 'int **') 556 55: PetscValidCharPointer(b, 2); 557 56: PetscValidIntPointer(c, 3); 558> 57: PetscValidIntPointer([33m[1md[0m, 4); 559 [33m[1m^[0m 560 58: PetscValidIntPointer(e, 5); 561 59: PetscValidBoolPointer(f, 6); 562 563[31m[1m./src/sys/tests/linter/testValidPointers.c:58:3: error:[0m Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]: 564 56: PetscValidIntPointer(c, 3); 565 57: PetscValidIntPointer(d, 4); 566> 58: [33m[1mPetscValidIntPointer(e, 5)[0m; 567 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 568 59: PetscValidBoolPointer(f, 6); 569 60: PetscValidScalarPointer(g, 7); 570 571./src/sys/tests/linter/testValidPointers.c:58:24 Note: Due to 'e' of type 'PetscInt **' (a.k.a. 'int **') 572 56: PetscValidIntPointer(c, 3); 573 57: PetscValidIntPointer(d, 4); 574> 58: PetscValidIntPointer([33m[1me[0m, 5); 575 [33m[1m^[0m 576 59: PetscValidBoolPointer(f, 6); 577 60: PetscValidScalarPointer(g, 7); 578 579[31m[1m./src/sys/tests/linter/testValidPointers.c:59:3: error:[0m Incorrect use of PetscValidBoolPointer(), use PetscValidPointer() instead [-fincompatible-function]: 580 57: PetscValidIntPointer(d, 4); 581 58: PetscValidIntPointer(e, 5); 582> 59: [33m[1mPetscValidBoolPointer(f, 6)[0m; 583 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 584 60: PetscValidScalarPointer(g, 7); 585 61: PetscValidRealPointer(h, 8); 586 587./src/sys/tests/linter/testValidPointers.c:59:25 Note: Due to 'f' of type 'PetscBool **' 588 57: PetscValidIntPointer(d, 4); 589 58: PetscValidIntPointer(e, 5); 590> 59: PetscValidBoolPointer([33m[1mf[0m, 6); 591 [33m[1m^[0m 592 60: PetscValidScalarPointer(g, 7); 593 61: PetscValidRealPointer(h, 8); 594 595[31m[1m./src/sys/tests/linter/testValidPointers.c:60:3: error:[0m Incorrect use of PetscValidScalarPointer(), use PetscValidPointer() instead [-fincompatible-function]: 596 58: PetscValidIntPointer(e, 5); 597 59: PetscValidBoolPointer(f, 6); 598> 60: [33m[1mPetscValidScalarPointer(g, 7)[0m; 599 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 600 61: PetscValidRealPointer(h, 8); 601 62: 602 603./src/sys/tests/linter/testValidPointers.c:60:27 Note: Due to 'g' of type 'PetscScalar **' (a.k.a. 'double **') 604 58: PetscValidIntPointer(e, 5); 605 59: PetscValidBoolPointer(f, 6); 606> 60: PetscValidScalarPointer([33m[1mg[0m, 7); 607 [33m[1m^[0m 608 61: PetscValidRealPointer(h, 8); 609 62: 610 611[31m[1m./src/sys/tests/linter/testValidPointers.c:61:3: error:[0m Incorrect use of PetscValidRealPointer(), use PetscValidPointer() instead [-fincompatible-function]: 612 59: PetscValidBoolPointer(f, 6); 613 60: PetscValidScalarPointer(g, 7); 614> 61: [33m[1mPetscValidRealPointer(h, 8)[0m; 615 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m 616 62: 617 63: /* correct */ 618 619./src/sys/tests/linter/testValidPointers.c:61:25 Note: Due to 'h' of type 'PetscReal **' (a.k.a. 'double **') 620 59: PetscValidBoolPointer(f, 6); 621 60: PetscValidScalarPointer(g, 7); 622> 61: PetscValidRealPointer([33m[1mh[0m, 8); 623 [33m[1m^[0m 624 62: 625 63: /* correct */ 626 627-------------------------------------------------------------------------------------------- 628<--- LEFT ---> 629