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