1<--- FIXED ---> 2-------------------------------------------------------------------------------------------- 3[31m[1m./src/sys/tests/linter/testValidPointers.c:6:25: error:[0m Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 4 4: { 5 5: /* incorrect */ 6> 6: PetscAssertPointer(a, [33m[1m2[0m); 7 [33m[1m^[0m 8 7: PetscAssertPointer(b, 3); 9 8: PetscAssertPointer(c, 4); 10 11./src/sys/tests/linter/testValidPointers.c:3:34 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 12 1: #include <petsc/private/petscimpl.h> 13 2: 14> 3: PetscErrorCode testValidPointers([33m[1mvoid *a[0m, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 15 [33m[1m^^^^^^^[0m 16 4: { 17 5: /* incorrect */ 18[31m[1m./src/sys/tests/linter/testValidPointers.c:7:25: error:[0m Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 19 5: /* incorrect */ 20 6: PetscAssertPointer(a, 2); 21> 7: PetscAssertPointer(b, [33m[1m3[0m); 22 [33m[1m^[0m 23 8: PetscAssertPointer(c, 4); 24 9: PetscAssertPointer(d, 5); 25 26./src/sys/tests/linter/testValidPointers.c:3:43 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 27 1: #include <petsc/private/petscimpl.h> 28 2: 29> 3: PetscErrorCode testValidPointers(void *a, [33m[1mchar *b[0m, 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:8:25: error:[0m Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 34 6 : PetscAssertPointer(a, 2); 35 7 : PetscAssertPointer(b, 3); 36> 8 : PetscAssertPointer(c, [33m[1m4[0m); 37 [33m[1m^[0m 38 9 : PetscAssertPointer(d, 5); 39 10: PetscAssertPointer(e, 6); 40 41./src/sys/tests/linter/testValidPointers.c:3:52 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 42 1: #include <petsc/private/petscimpl.h> 43 2: 44> 3: PetscErrorCode testValidPointers(void *a, char *b, [33m[1mPetscInt *c[0m, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 45 [33m[1m^^^^^^^^^^^[0m 46 4: { 47 5: /* incorrect */ 48[31m[1m./src/sys/tests/linter/testValidPointers.c:9:25: error:[0m Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 49 7 : PetscAssertPointer(b, 3); 50 8 : PetscAssertPointer(c, 4); 51> 9 : PetscAssertPointer(d, [33m[1m5[0m); 52 [33m[1m^[0m 53 10: PetscAssertPointer(e, 6); 54 11: PetscAssertPointer(f, 7); 55 56./src/sys/tests/linter/testValidPointers.c:3:65 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 57 1: #include <petsc/private/petscimpl.h> 58 2: 59> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, [33m[1mPetscMPIInt *d[0m, 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:10:25: error:[0m Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 64 8 : PetscAssertPointer(c, 4); 65 9 : PetscAssertPointer(d, 5); 66> 10: PetscAssertPointer(e, [33m[1m6[0m); 67 [33m[1m^[0m 68 11: PetscAssertPointer(f, 7); 69 12: PetscAssertPointer(g, 8); 70 71./src/sys/tests/linter/testValidPointers.c:3:81 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 72 1: #include <petsc/private/petscimpl.h> 73 2: 74> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, [33m[1mPetscInt *e[0m, PetscBool *f, PetscScalar *g, PetscReal *h) 75 [33m[1m^^^^^^^^^^^[0m 76 4: { 77 5: /* incorrect */ 78[31m[1m./src/sys/tests/linter/testValidPointers.c:11:25: error:[0m Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 79 9 : PetscAssertPointer(d, 5); 80 10: PetscAssertPointer(e, 6); 81> 11: PetscAssertPointer(f, [33m[1m7[0m); 82 [33m[1m^[0m 83 12: PetscAssertPointer(g, 8); 84 13: PetscAssertPointer(h, 9); 85 86./src/sys/tests/linter/testValidPointers.c:3:94 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 87 1: #include <petsc/private/petscimpl.h> 88 2: 89> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, [33m[1mPetscBool *f[0m, PetscScalar *g, PetscReal *h) 90 [33m[1m^^^^^^^^^^^^[0m 91 4: { 92 5: /* incorrect */ 93[31m[1m./src/sys/tests/linter/testValidPointers.c:12:25: error:[0m Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 94 10: PetscAssertPointer(e, 6); 95 11: PetscAssertPointer(f, 7); 96> 12: PetscAssertPointer(g, [33m[1m8[0m); 97 [33m[1m^[0m 98 13: PetscAssertPointer(h, 9); 99 14: 100 101./src/sys/tests/linter/testValidPointers.c:3:108 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 102 1: #include <petsc/private/petscimpl.h> 103 2: 104> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, [33m[1mPetscScalar *g[0m, PetscReal *h) 105 [33m[1m^^^^^^^^^^^^^^[0m 106 4: { 107 5: /* incorrect */ 108[31m[1m./src/sys/tests/linter/testValidPointers.c:13:25: error:[0m Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 109 11: PetscAssertPointer(f, 7); 110 12: PetscAssertPointer(g, 8); 111> 13: PetscAssertPointer(h, [33m[1m9[0m); 112 [33m[1m^[0m 113 14: 114 15: /* correct */ 115 116./src/sys/tests/linter/testValidPointers.c:3:124 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 117 1: #include <petsc/private/petscimpl.h> 118 2: 119> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, [33m[1mPetscReal *h[0m) 120 [33m[1m^^^^^^^^^^^^[0m 121 4: { 122 5: /* incorrect */ 123[31m[1m./src/sys/tests/linter/testValidPointers.c:30:25: error:[0m Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]: 124 28: { 125 29: /* incorrect */ 126> 30: PetscAssertPointer(a, [33m[1m2[0m); 127 [33m[1m^[0m 128 31: PetscAssertPointer(b, 3); 129 32: PetscAssertPointer(c, 4); 130 131./src/sys/tests/linter/testValidPointers.c:27:25 Note: 'a' is traceable to argument #1 'a' in enclosing function here: 132 25: } 133 26: 134> 27: void testValidPointers2([33m[1mvoid *a[0m, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 135 [33m[1m^^^^^^^[0m 136 28: { 137 29: /* incorrect */ 138[31m[1m./src/sys/tests/linter/testValidPointers.c:31:25: error:[0m Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]: 139 29: /* incorrect */ 140 30: PetscAssertPointer(a, 2); 141> 31: PetscAssertPointer(b, [33m[1m3[0m); 142 [33m[1m^[0m 143 32: PetscAssertPointer(c, 4); 144 33: PetscAssertPointer(d, 5); 145 146./src/sys/tests/linter/testValidPointers.c:27:34 Note: 'b' is traceable to argument #2 'b' in enclosing function here: 147 25: } 148 26: 149> 27: void testValidPointers2(void *a, [33m[1mchar *b[0m, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 150 [33m[1m^^^^^^^[0m 151 28: { 152 29: /* incorrect */ 153[31m[1m./src/sys/tests/linter/testValidPointers.c:32:25: error:[0m Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]: 154 30: PetscAssertPointer(a, 2); 155 31: PetscAssertPointer(b, 3); 156> 32: PetscAssertPointer(c, [33m[1m4[0m); 157 [33m[1m^[0m 158 33: PetscAssertPointer(d, 5); 159 34: PetscAssertPointer(e, 6); 160 161./src/sys/tests/linter/testValidPointers.c:27:43 Note: 'c' is traceable to argument #3 'c' in enclosing function here: 162 25: } 163 26: 164> 27: void testValidPointers2(void *a, char *b, [33m[1mPetscInt *c[0m, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 165 [33m[1m^^^^^^^^^^^[0m 166 28: { 167 29: /* incorrect */ 168[31m[1m./src/sys/tests/linter/testValidPointers.c:33:25: error:[0m Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]: 169 31: PetscAssertPointer(b, 3); 170 32: PetscAssertPointer(c, 4); 171> 33: PetscAssertPointer(d, [33m[1m5[0m); 172 [33m[1m^[0m 173 34: PetscAssertPointer(e, 6); 174 35: PetscAssertPointer(f, 7); 175 176./src/sys/tests/linter/testValidPointers.c:27:56 Note: 'd' is traceable to argument #4 'd' in enclosing function here: 177 25: } 178 26: 179> 27: void testValidPointers2(void *a, char *b, PetscInt *c, [33m[1mPetscMPIInt *d[0m, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h) 180 [33m[1m^^^^^^^^^^^^^^[0m 181 28: { 182 29: /* incorrect */ 183[31m[1m./src/sys/tests/linter/testValidPointers.c:34:25: error:[0m Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]: 184 32: PetscAssertPointer(c, 4); 185 33: PetscAssertPointer(d, 5); 186> 34: PetscAssertPointer(e, [33m[1m6[0m); 187 [33m[1m^[0m 188 35: PetscAssertPointer(f, 7); 189 36: PetscAssertPointer(g, 8); 190 191./src/sys/tests/linter/testValidPointers.c:27:72 Note: 'e' is traceable to argument #5 'e' in enclosing function here: 192 25: } 193 26: 194> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, [33m[1mPetscInt *e[0m, PetscBool *f, PetscScalar *g, PetscReal *h) 195 [33m[1m^^^^^^^^^^^[0m 196 28: { 197 29: /* incorrect */ 198[31m[1m./src/sys/tests/linter/testValidPointers.c:35:25: error:[0m Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]: 199 33: PetscAssertPointer(d, 5); 200 34: PetscAssertPointer(e, 6); 201> 35: PetscAssertPointer(f, [33m[1m7[0m); 202 [33m[1m^[0m 203 36: PetscAssertPointer(g, 8); 204 37: PetscAssertPointer(h, 9); 205 206./src/sys/tests/linter/testValidPointers.c:27:85 Note: 'f' is traceable to argument #6 'f' in enclosing function here: 207 25: } 208 26: 209> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, [33m[1mPetscBool *f[0m, PetscScalar *g, PetscReal *h) 210 [33m[1m^^^^^^^^^^^^[0m 211 28: { 212 29: /* incorrect */ 213[31m[1m./src/sys/tests/linter/testValidPointers.c:36:25: error:[0m Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]: 214 34: PetscAssertPointer(e, 6); 215 35: PetscAssertPointer(f, 7); 216> 36: PetscAssertPointer(g, [33m[1m8[0m); 217 [33m[1m^[0m 218 37: PetscAssertPointer(h, 9); 219 38: 220 221./src/sys/tests/linter/testValidPointers.c:27:99 Note: 'g' is traceable to argument #7 'g' in enclosing function here: 222 25: } 223 26: 224> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, [33m[1mPetscScalar *g[0m, PetscReal *h) 225 [33m[1m^^^^^^^^^^^^^^[0m 226 28: { 227 29: /* incorrect */ 228[31m[1m./src/sys/tests/linter/testValidPointers.c:37:25: error:[0m Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]: 229 35: PetscAssertPointer(f, 7); 230 36: PetscAssertPointer(g, 8); 231> 37: PetscAssertPointer(h, [33m[1m9[0m); 232 [33m[1m^[0m 233 38: 234 39: /* correct */ 235 236./src/sys/tests/linter/testValidPointers.c:27:115 Note: 'h' is traceable to argument #8 'h' in enclosing function here: 237 25: } 238 26: 239> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, [33m[1mPetscReal *h[0m) 240 [33m[1m^^^^^^^^^^^^[0m 241 28: { 242 29: /* incorrect */ 243[31m[1m./src/sys/tests/linter/testValidPointers.c:64:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 244 52: { 245 53: /* incorrect */ 246> 54: [33m[1mPetscAssertPointer(a, 1)[0m; 247 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 248 55: PetscAssertPointer(b, 2); 249 56: PetscAssertPointer(c, 3); 250 57: PetscAssertPointer(d, 4); 251 58: PetscAssertPointer(e, 5); 252 59: PetscAssertPointer(f, 6); 253 60: PetscAssertPointer(g, 7); 254 61: PetscAssertPointer(h, 8); 255 62: 256 63: /* correct */ 257 64: PetscAssertPointer(a, 1); 258[31m[1m./src/sys/tests/linter/testValidPointers.c:65:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 259 53: /* incorrect */ 260 54: PetscAssertPointer(a, 1); 261> 55: [33m[1mPetscAssertPointer(b, 2)[0m; 262 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 263 56: PetscAssertPointer(c, 3); 264 57: PetscAssertPointer(d, 4); 265 58: PetscAssertPointer(e, 5); 266 59: PetscAssertPointer(f, 6); 267 60: PetscAssertPointer(g, 7); 268 61: PetscAssertPointer(h, 8); 269 62: 270 63: /* correct */ 271 64: PetscAssertPointer(a, 1); 272 65: PetscAssertPointer(b, 2); 273[31m[1m./src/sys/tests/linter/testValidPointers.c:66:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 274 54: PetscAssertPointer(a, 1); 275 55: PetscAssertPointer(b, 2); 276> 56: [33m[1mPetscAssertPointer(c, 3)[0m; 277 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 278 57: PetscAssertPointer(d, 4); 279 58: PetscAssertPointer(e, 5); 280 59: PetscAssertPointer(f, 6); 281 60: PetscAssertPointer(g, 7); 282 61: PetscAssertPointer(h, 8); 283 62: 284 63: /* correct */ 285 64: PetscAssertPointer(a, 1); 286 65: PetscAssertPointer(b, 2); 287 66: PetscAssertPointer(c, 3); 288[31m[1m./src/sys/tests/linter/testValidPointers.c:67:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 289 55: PetscAssertPointer(b, 2); 290 56: PetscAssertPointer(c, 3); 291> 57: [33m[1mPetscAssertPointer(d, 4)[0m; 292 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 293 58: PetscAssertPointer(e, 5); 294 59: PetscAssertPointer(f, 6); 295 60: PetscAssertPointer(g, 7); 296 61: PetscAssertPointer(h, 8); 297 62: 298 63: /* correct */ 299 64: PetscAssertPointer(a, 1); 300 65: PetscAssertPointer(b, 2); 301 66: PetscAssertPointer(c, 3); 302 67: PetscAssertPointer(d, 4); 303[31m[1m./src/sys/tests/linter/testValidPointers.c:68:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 304 56: PetscAssertPointer(c, 3); 305 57: PetscAssertPointer(d, 4); 306> 58: [33m[1mPetscAssertPointer(e, 5)[0m; 307 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 308 59: PetscAssertPointer(f, 6); 309 60: PetscAssertPointer(g, 7); 310 61: PetscAssertPointer(h, 8); 311 62: 312 63: /* correct */ 313 64: PetscAssertPointer(a, 1); 314 65: PetscAssertPointer(b, 2); 315 66: PetscAssertPointer(c, 3); 316 67: PetscAssertPointer(d, 4); 317 68: PetscAssertPointer(e, 5); 318[31m[1m./src/sys/tests/linter/testValidPointers.c:69:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 319 57: PetscAssertPointer(d, 4); 320 58: PetscAssertPointer(e, 5); 321> 59: [33m[1mPetscAssertPointer(f, 6)[0m; 322 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 323 60: PetscAssertPointer(g, 7); 324 61: PetscAssertPointer(h, 8); 325 62: 326 63: /* correct */ 327 64: PetscAssertPointer(a, 1); 328 65: PetscAssertPointer(b, 2); 329 66: PetscAssertPointer(c, 3); 330 67: PetscAssertPointer(d, 4); 331 68: PetscAssertPointer(e, 5); 332 69: PetscAssertPointer(f, 6); 333[31m[1m./src/sys/tests/linter/testValidPointers.c:70:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 334 58: PetscAssertPointer(e, 5); 335 59: PetscAssertPointer(f, 6); 336> 60: [33m[1mPetscAssertPointer(g, 7)[0m; 337 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 338 61: PetscAssertPointer(h, 8); 339 62: 340 63: /* correct */ 341 64: PetscAssertPointer(a, 1); 342 65: PetscAssertPointer(b, 2); 343 66: PetscAssertPointer(c, 3); 344 67: PetscAssertPointer(d, 4); 345 68: PetscAssertPointer(e, 5); 346 69: PetscAssertPointer(f, 6); 347 70: PetscAssertPointer(g, 7); 348[31m[1m./src/sys/tests/linter/testValidPointers.c:71:3: error:[0m Duplicate function found previous identical usage [-fduplicate-function]: 349 59: PetscAssertPointer(f, 6); 350 60: PetscAssertPointer(g, 7); 351> 61: [33m[1mPetscAssertPointer(h, 8)[0m; 352 [33m[1m^^^^^^^^^^^^^^^^^^^^^^^^[0m 353 62: 354 63: /* correct */ 355 64: PetscAssertPointer(a, 1); 356 65: PetscAssertPointer(b, 2); 357 66: PetscAssertPointer(c, 3); 358 67: PetscAssertPointer(d, 4); 359 68: PetscAssertPointer(e, 5); 360 69: PetscAssertPointer(f, 6); 361 70: PetscAssertPointer(g, 7); 362 71: PetscAssertPointer(h, 8); 363-------------------------------------------------------------------------------------------- 364<--- LEFT ---> 365