xref: /petsc/src/sys/tests/linter/output/testValidPointers.out (revision cf79d321d85ea8afa6676326081b4f0dbdcca743)
1<--- FIXED --->
2--------------------------------------------------------------------------------------------
3./src/sys/tests/linter/testValidPointers.c:6:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
4  4: {
5  5:   /* incorrect */
6> 6:   PetscValidCharPointer(a, 2);
7       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(a, 2);
15                             ^
16  7:   PetscValidIntPointer(b, 3);
17  8:   PetscValidBoolPointer(c, 4);
18
19./src/sys/tests/linter/testValidPointers.c:6:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
20  4: {
21  5:   /* incorrect */
22> 6:   PetscValidCharPointer(a, 2);
23                                ^
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(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
31                                      ^^^^^^^
32  4: {
33  5:   /* incorrect */
34./src/sys/tests/linter/testValidPointers.c:7:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidCharPointer() instead [-fincompatible-function]:
35  5: /* incorrect */
36  6: PetscValidCharPointer(a, 2);
37> 7: PetscValidIntPointer(b, 3);
38     ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(b, 3);
46                          ^
47  8: PetscValidBoolPointer(c, 4);
48  9: PetscValidRealPointer(d, 5);
49
50./src/sys/tests/linter/testValidPointers.c:7:27: error: 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, 3);
54                             ^
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, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
62                                               ^^^^^^^
63  4: {
64  5:   /* incorrect */
65./src/sys/tests/linter/testValidPointers.c:8:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
66  6 : PetscValidCharPointer(a, 2);
67  7 : PetscValidIntPointer(b, 3);
68> 8 : PetscValidBoolPointer(c, 4);
69      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(c, 4);
77                            ^
78  9 : PetscValidRealPointer(d, 5);
79  10: PetscValidScalarPointer(e, 6);
80
81./src/sys/tests/linter/testValidPointers.c:8:28: error: 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, 4);
85                               ^
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, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
93                                                        ^^^^^^^^^^^
94  4: {
95  5:   /* incorrect */
96./src/sys/tests/linter/testValidPointers.c:9:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
97  7 : PetscValidIntPointer(b, 3);
98  8 : PetscValidBoolPointer(c, 4);
99> 9 : PetscValidRealPointer(d, 5);
100      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(d, 5);
108                            ^
109  10: PetscValidScalarPointer(e, 6);
110  11: PetscValidIntPointer(f, 7);
111
112./src/sys/tests/linter/testValidPointers.c:9:28: error: 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, 5);
116                               ^
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, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
124                                                                     ^^^^^^^^^^^^^^
125  4: {
126  5:   /* incorrect */
127./src/sys/tests/linter/testValidPointers.c:10:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
128  8 : PetscValidBoolPointer(c, 4);
129  9 : PetscValidRealPointer(d, 5);
130> 10: PetscValidScalarPointer(e, 6);
131      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(e, 6);
139                              ^
140  11: PetscValidIntPointer(f, 7);
141  12: PetscValidRealPointer(g, 8);
142
143./src/sys/tests/linter/testValidPointers.c:10:30: error: 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, 6);
147                                 ^
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, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
155                                                                                     ^^^^^^^^^^^
156  4: {
157  5:   /* incorrect */
158./src/sys/tests/linter/testValidPointers.c:11:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]:
159  9 : PetscValidRealPointer(d, 5);
160  10: PetscValidScalarPointer(e, 6);
161> 11: PetscValidIntPointer(f, 7);
162      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(f, 7);
170                           ^
171  12: PetscValidRealPointer(g, 8);
172  13: PetscValidScalarPointer(h, 9);
173
174./src/sys/tests/linter/testValidPointers.c:11:27: error: 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, 7);
178                              ^
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, PetscBool *f, PetscScalar *g, PetscReal *h)
186                                                                                                  ^^^^^^^^^^^^
187  4: {
188  5:   /* incorrect */
189./src/sys/tests/linter/testValidPointers.c:12:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]:
190  10: PetscValidScalarPointer(e, 6);
191  11: PetscValidIntPointer(f, 7);
192> 12: PetscValidRealPointer(g, 8);
193      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(g, 8);
201                            ^
202  13: PetscValidScalarPointer(h, 9);
203  14:
204
205./src/sys/tests/linter/testValidPointers.c:12:28: error: 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, 8);
209                               ^
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, PetscScalar *g, PetscReal *h)
217                                                                                                                ^^^^^^^^^^^^^^
218  4: {
219  5:   /* incorrect */
220./src/sys/tests/linter/testValidPointers.c:13:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidRealPointer() instead [-fincompatible-function]:
221  11: PetscValidIntPointer(f, 7);
222  12: PetscValidRealPointer(g, 8);
223> 13: PetscValidScalarPointer(h, 9);
224      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(h, 9);
232                              ^
233  14:
234  15: /* correct */
235
236./src/sys/tests/linter/testValidPointers.c:13:30: error: 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, 9);
240                                 ^
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, PetscReal *h)
248                                                                                                                                ^^^^^^^^^^^^
249  4: {
250  5:   /* incorrect */
251./src/sys/tests/linter/testValidPointers.c:30:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
252  28: {
253  29:   /* incorrect */
254> 30:   PetscValidCharPointer(a, 2);
255        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(a, 2);
263                              ^
264  31:   PetscValidPointer(b, 3);
265  32:   PetscValidPointer(c, 4);
266
267./src/sys/tests/linter/testValidPointers.c:30:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
268  28: {
269  29:   /* incorrect */
270> 30:   PetscValidCharPointer(a, 2);
271                                 ^
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(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
279                              ^^^^^^^
280  28: {
281  29:   /* incorrect */
282./src/sys/tests/linter/testValidPointers.c:31:3: error: Incorrect use of PetscValidPointer(), use PetscValidCharPointer() instead [-fincompatible-function]:
283  29: /* incorrect */
284  30: PetscValidCharPointer(a, 2);
285> 31: PetscValidPointer(b, 3);
286      ^^^^^^^^^^^^^^^^^^^^^^^
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(b, 3);
294                        ^
295  32: PetscValidPointer(c, 4);
296  33: PetscValidPointer(d, 5);
297
298./src/sys/tests/linter/testValidPointers.c:31:24: error: 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, 3);
302                           ^
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, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
310                                       ^^^^^^^
311  28: {
312  29:   /* incorrect */
313./src/sys/tests/linter/testValidPointers.c:32:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
314  30: PetscValidCharPointer(a, 2);
315  31: PetscValidPointer(b, 3);
316> 32: PetscValidPointer(c, 4);
317      ^^^^^^^^^^^^^^^^^^^^^^^
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(c, 4);
325                        ^
326  33: PetscValidPointer(d, 5);
327  34: PetscValidPointer(e, 6);
328
329./src/sys/tests/linter/testValidPointers.c:32:24: error: 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, 4);
333                           ^
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, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
341                                                ^^^^^^^^^^^
342  28: {
343  29:   /* incorrect */
344./src/sys/tests/linter/testValidPointers.c:33:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
345  31: PetscValidPointer(b, 3);
346  32: PetscValidPointer(c, 4);
347> 33: PetscValidPointer(d, 5);
348      ^^^^^^^^^^^^^^^^^^^^^^^
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(d, 5);
356                        ^
357  34: PetscValidPointer(e, 6);
358  35: PetscValidPointer(f, 7);
359
360./src/sys/tests/linter/testValidPointers.c:33:24: error: 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, 5);
364                           ^
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, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
372                                                             ^^^^^^^^^^^^^^
373  28: {
374  29:   /* incorrect */
375./src/sys/tests/linter/testValidPointers.c:34:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
376  32: PetscValidPointer(c, 4);
377  33: PetscValidPointer(d, 5);
378> 34: PetscValidPointer(e, 6);
379      ^^^^^^^^^^^^^^^^^^^^^^^
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(e, 6);
387                        ^
388  35: PetscValidPointer(f, 7);
389  36: PetscValidPointer(g, 8);
390
391./src/sys/tests/linter/testValidPointers.c:34:24: error: 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, 6);
395                           ^
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, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
403                                                                             ^^^^^^^^^^^
404  28: {
405  29:   /* incorrect */
406./src/sys/tests/linter/testValidPointers.c:35:3: error: Incorrect use of PetscValidPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]:
407  33: PetscValidPointer(d, 5);
408  34: PetscValidPointer(e, 6);
409> 35: PetscValidPointer(f, 7);
410      ^^^^^^^^^^^^^^^^^^^^^^^
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(f, 7);
418                        ^
419  36: PetscValidPointer(g, 8);
420  37: PetscValidPointer(h, 9);
421
422./src/sys/tests/linter/testValidPointers.c:35:24: error: 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, 7);
426                           ^
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, PetscBool *f, PetscScalar *g, PetscReal *h)
434                                                                                          ^^^^^^^^^^^^
435  28: {
436  29:   /* incorrect */
437./src/sys/tests/linter/testValidPointers.c:36:3: error: Incorrect use of PetscValidPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]:
438  34: PetscValidPointer(e, 6);
439  35: PetscValidPointer(f, 7);
440> 36: PetscValidPointer(g, 8);
441      ^^^^^^^^^^^^^^^^^^^^^^^
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(g, 8);
449                        ^
450  37: PetscValidPointer(h, 9);
451  38:
452
453./src/sys/tests/linter/testValidPointers.c:36:24: error: 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, 8);
457                           ^
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, PetscScalar *g, PetscReal *h)
465                                                                                                        ^^^^^^^^^^^^^^
466  28: {
467  29:   /* incorrect */
468./src/sys/tests/linter/testValidPointers.c:37:3: error: Incorrect use of PetscValidPointer(), use PetscValidRealPointer() instead [-fincompatible-function]:
469  35: PetscValidPointer(f, 7);
470  36: PetscValidPointer(g, 8);
471> 37: PetscValidPointer(h, 9);
472      ^^^^^^^^^^^^^^^^^^^^^^^
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(h, 9);
480                        ^
481  38:
482  39: /* correct */
483
484./src/sys/tests/linter/testValidPointers.c:37:24: error: 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, 9);
488                           ^
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, PetscReal *h)
496                                                                                                                        ^^^^^^^^^^^^
497  28: {
498  29:   /* incorrect */
499./src/sys/tests/linter/testValidPointers.c:54:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
500  52: {
501  53:   /* incorrect */
502> 54:   PetscValidCharPointer(a, 1);
503        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(a, 1);
511                              ^
512  55:   PetscValidCharPointer(b, 2);
513  56:   PetscValidIntPointer(c, 3);
514
515./src/sys/tests/linter/testValidPointers.c:55:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
516  53: /* incorrect */
517  54: PetscValidCharPointer(a, 1);
518> 55: PetscValidCharPointer(b, 2);
519      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(b, 2);
527                            ^
528  56: PetscValidIntPointer(c, 3);
529  57: PetscValidIntPointer(d, 4);
530
531./src/sys/tests/linter/testValidPointers.c:56:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
532  54: PetscValidCharPointer(a, 1);
533  55: PetscValidCharPointer(b, 2);
534> 56: PetscValidIntPointer(c, 3);
535      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(c, 3);
543                           ^
544  57: PetscValidIntPointer(d, 4);
545  58: PetscValidIntPointer(e, 5);
546
547./src/sys/tests/linter/testValidPointers.c:57:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
548  55: PetscValidCharPointer(b, 2);
549  56: PetscValidIntPointer(c, 3);
550> 57: PetscValidIntPointer(d, 4);
551      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(d, 4);
559                           ^
560  58: PetscValidIntPointer(e, 5);
561  59: PetscValidBoolPointer(f, 6);
562
563./src/sys/tests/linter/testValidPointers.c:58:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
564  56: PetscValidIntPointer(c, 3);
565  57: PetscValidIntPointer(d, 4);
566> 58: PetscValidIntPointer(e, 5);
567      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(e, 5);
575                           ^
576  59: PetscValidBoolPointer(f, 6);
577  60: PetscValidScalarPointer(g, 7);
578
579./src/sys/tests/linter/testValidPointers.c:59:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidPointer() instead [-fincompatible-function]:
580  57: PetscValidIntPointer(d, 4);
581  58: PetscValidIntPointer(e, 5);
582> 59: PetscValidBoolPointer(f, 6);
583      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(f, 6);
591                            ^
592  60: PetscValidScalarPointer(g, 7);
593  61: PetscValidRealPointer(h, 8);
594
595./src/sys/tests/linter/testValidPointers.c:60:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidPointer() instead [-fincompatible-function]:
596  58: PetscValidIntPointer(e, 5);
597  59: PetscValidBoolPointer(f, 6);
598> 60: PetscValidScalarPointer(g, 7);
599      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(g, 7);
607                              ^
608  61: PetscValidRealPointer(h, 8);
609  62:
610
611./src/sys/tests/linter/testValidPointers.c:61:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidPointer() instead [-fincompatible-function]:
612  59: PetscValidBoolPointer(f, 6);
613  60: PetscValidScalarPointer(g, 7);
614> 61: PetscValidRealPointer(h, 8);
615      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(h, 8);
623                            ^
624  62:
625  63: /* correct */
626
627--------------------------------------------------------------------------------------------
628<--- LEFT --->
629