xref: /petsc/src/sys/tests/linter/output/testValidPointers.out (revision 697336901c45ac77e1fd620fe1fca906cf3f95c8)
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./src/sys/tests/linter/testValidPointers.c:6:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
19  4: {
20  5:   /* incorrect */
21> 6:   PetscValidCharPointer(a, 2);
22                                ^
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(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
30                                      ^^^^^^^
31  4: {
32  5:   /* incorrect */
33./src/sys/tests/linter/testValidPointers.c:7:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidCharPointer() instead [-fincompatible-function]:
34  5: /* incorrect */
35  6: PetscValidCharPointer(a, 2);
36> 7: PetscValidIntPointer(b, 3);
37     ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(b, 3);
45                          ^
46  8: PetscValidBoolPointer(c, 4);
47  9: PetscValidRealPointer(d, 5);
48./src/sys/tests/linter/testValidPointers.c:7:27: error: 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, 3);
52                             ^
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, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
60                                               ^^^^^^^
61  4: {
62  5:   /* incorrect */
63./src/sys/tests/linter/testValidPointers.c:8:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
64  6 : PetscValidCharPointer(a, 2);
65  7 : PetscValidIntPointer(b, 3);
66> 8 : PetscValidBoolPointer(c, 4);
67      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(c, 4);
75                            ^
76  9 : PetscValidRealPointer(d, 5);
77  10: PetscValidScalarPointer(e, 6);
78./src/sys/tests/linter/testValidPointers.c:8:28: error: 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, 4);
82                               ^
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, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
90                                                        ^^^^^^^^^^^
91  4: {
92  5:   /* incorrect */
93./src/sys/tests/linter/testValidPointers.c:9:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
94  7 : PetscValidIntPointer(b, 3);
95  8 : PetscValidBoolPointer(c, 4);
96> 9 : PetscValidRealPointer(d, 5);
97      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(d, 5);
105                            ^
106  10: PetscValidScalarPointer(e, 6);
107  11: PetscValidIntPointer(f, 7);
108./src/sys/tests/linter/testValidPointers.c:9:28: error: 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, 5);
112                               ^
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, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
120                                                                     ^^^^^^^^^^^^^^
121  4: {
122  5:   /* incorrect */
123./src/sys/tests/linter/testValidPointers.c:10:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
124  8 : PetscValidBoolPointer(c, 4);
125  9 : PetscValidRealPointer(d, 5);
126> 10: PetscValidScalarPointer(e, 6);
127      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(e, 6);
135                              ^
136  11: PetscValidIntPointer(f, 7);
137  12: PetscValidRealPointer(g, 8);
138./src/sys/tests/linter/testValidPointers.c:10:30: error: 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, 6);
142                                 ^
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, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
150                                                                                     ^^^^^^^^^^^
151  4: {
152  5:   /* incorrect */
153./src/sys/tests/linter/testValidPointers.c:11:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]:
154  9 : PetscValidRealPointer(d, 5);
155  10: PetscValidScalarPointer(e, 6);
156> 11: PetscValidIntPointer(f, 7);
157      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(f, 7);
165                           ^
166  12: PetscValidRealPointer(g, 8);
167  13: PetscValidScalarPointer(h, 9);
168./src/sys/tests/linter/testValidPointers.c:11:27: error: 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, 7);
172                              ^
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, PetscBool *f, PetscScalar *g, PetscReal *h)
180                                                                                                  ^^^^^^^^^^^^
181  4: {
182  5:   /* incorrect */
183./src/sys/tests/linter/testValidPointers.c:12:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]:
184  10: PetscValidScalarPointer(e, 6);
185  11: PetscValidIntPointer(f, 7);
186> 12: PetscValidRealPointer(g, 8);
187      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(g, 8);
195                            ^
196  13: PetscValidScalarPointer(h, 9);
197  14:
198./src/sys/tests/linter/testValidPointers.c:12:28: error: 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, 8);
202                               ^
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, PetscScalar *g, PetscReal *h)
210                                                                                                                ^^^^^^^^^^^^^^
211  4: {
212  5:   /* incorrect */
213./src/sys/tests/linter/testValidPointers.c:13:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidRealPointer() instead [-fincompatible-function]:
214  11: PetscValidIntPointer(f, 7);
215  12: PetscValidRealPointer(g, 8);
216> 13: PetscValidScalarPointer(h, 9);
217      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(h, 9);
225                              ^
226  14:
227  15: /* correct */
228./src/sys/tests/linter/testValidPointers.c:13:30: error: 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, 9);
232                                 ^
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, PetscReal *h)
240                                                                                                                                ^^^^^^^^^^^^
241  4: {
242  5:   /* incorrect */
243./src/sys/tests/linter/testValidPointers.c:30:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
244  28: {
245  29:   /* incorrect */
246> 30:   PetscValidCharPointer(a, 2);
247        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(a, 2);
255                              ^
256  31:   PetscValidPointer(b, 3);
257  32:   PetscValidPointer(c, 4);
258./src/sys/tests/linter/testValidPointers.c:30:28: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
259  28: {
260  29:   /* incorrect */
261> 30:   PetscValidCharPointer(a, 2);
262                                 ^
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(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
270                              ^^^^^^^
271  28: {
272  29:   /* incorrect */
273./src/sys/tests/linter/testValidPointers.c:31:3: error: Incorrect use of PetscValidPointer(), use PetscValidCharPointer() instead [-fincompatible-function]:
274  29: /* incorrect */
275  30: PetscValidCharPointer(a, 2);
276> 31: PetscValidPointer(b, 3);
277      ^^^^^^^^^^^^^^^^^^^^^^^
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(b, 3);
285                        ^
286  32: PetscValidPointer(c, 4);
287  33: PetscValidPointer(d, 5);
288./src/sys/tests/linter/testValidPointers.c:31:24: error: 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, 3);
292                           ^
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, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
300                                       ^^^^^^^
301  28: {
302  29:   /* incorrect */
303./src/sys/tests/linter/testValidPointers.c:32:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
304  30: PetscValidCharPointer(a, 2);
305  31: PetscValidPointer(b, 3);
306> 32: PetscValidPointer(c, 4);
307      ^^^^^^^^^^^^^^^^^^^^^^^
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(c, 4);
315                        ^
316  33: PetscValidPointer(d, 5);
317  34: PetscValidPointer(e, 6);
318./src/sys/tests/linter/testValidPointers.c:32:24: error: 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, 4);
322                           ^
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, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
330                                                ^^^^^^^^^^^
331  28: {
332  29:   /* incorrect */
333./src/sys/tests/linter/testValidPointers.c:33:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
334  31: PetscValidPointer(b, 3);
335  32: PetscValidPointer(c, 4);
336> 33: PetscValidPointer(d, 5);
337      ^^^^^^^^^^^^^^^^^^^^^^^
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(d, 5);
345                        ^
346  34: PetscValidPointer(e, 6);
347  35: PetscValidPointer(f, 7);
348./src/sys/tests/linter/testValidPointers.c:33:24: error: 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, 5);
352                           ^
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, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
360                                                             ^^^^^^^^^^^^^^
361  28: {
362  29:   /* incorrect */
363./src/sys/tests/linter/testValidPointers.c:34:3: error: Incorrect use of PetscValidPointer(), use PetscValidIntPointer() instead [-fincompatible-function]:
364  32: PetscValidPointer(c, 4);
365  33: PetscValidPointer(d, 5);
366> 34: PetscValidPointer(e, 6);
367      ^^^^^^^^^^^^^^^^^^^^^^^
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(e, 6);
375                        ^
376  35: PetscValidPointer(f, 7);
377  36: PetscValidPointer(g, 8);
378./src/sys/tests/linter/testValidPointers.c:34:24: error: 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, 6);
382                           ^
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, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
390                                                                             ^^^^^^^^^^^
391  28: {
392  29:   /* incorrect */
393./src/sys/tests/linter/testValidPointers.c:35:3: error: Incorrect use of PetscValidPointer(), use PetscValidBoolPointer() instead [-fincompatible-function]:
394  33: PetscValidPointer(d, 5);
395  34: PetscValidPointer(e, 6);
396> 35: PetscValidPointer(f, 7);
397      ^^^^^^^^^^^^^^^^^^^^^^^
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(f, 7);
405                        ^
406  36: PetscValidPointer(g, 8);
407  37: PetscValidPointer(h, 9);
408./src/sys/tests/linter/testValidPointers.c:35:24: error: 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, 7);
412                           ^
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, PetscBool *f, PetscScalar *g, PetscReal *h)
420                                                                                          ^^^^^^^^^^^^
421  28: {
422  29:   /* incorrect */
423./src/sys/tests/linter/testValidPointers.c:36:3: error: Incorrect use of PetscValidPointer(), use PetscValidScalarPointer() instead [-fincompatible-function]:
424  34: PetscValidPointer(e, 6);
425  35: PetscValidPointer(f, 7);
426> 36: PetscValidPointer(g, 8);
427      ^^^^^^^^^^^^^^^^^^^^^^^
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(g, 8);
435                        ^
436  37: PetscValidPointer(h, 9);
437  38:
438./src/sys/tests/linter/testValidPointers.c:36:24: error: 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, 8);
442                           ^
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, PetscScalar *g, PetscReal *h)
450                                                                                                        ^^^^^^^^^^^^^^
451  28: {
452  29:   /* incorrect */
453./src/sys/tests/linter/testValidPointers.c:37:3: error: Incorrect use of PetscValidPointer(), use PetscValidRealPointer() instead [-fincompatible-function]:
454  35: PetscValidPointer(f, 7);
455  36: PetscValidPointer(g, 8);
456> 37: PetscValidPointer(h, 9);
457      ^^^^^^^^^^^^^^^^^^^^^^^
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(h, 9);
465                        ^
466  38:
467  39: /* correct */
468./src/sys/tests/linter/testValidPointers.c:37:24: error: 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, 9);
472                           ^
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, PetscReal *h)
480                                                                                                                        ^^^^^^^^^^^^
481  28: {
482  29:   /* incorrect */
483./src/sys/tests/linter/testValidPointers.c:54:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
484  52: {
485  53:   /* incorrect */
486> 54:   PetscValidCharPointer(a, 1);
487        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(a, 1);
495                              ^
496  55:   PetscValidCharPointer(b, 2);
497  56:   PetscValidIntPointer(c, 3);
498./src/sys/tests/linter/testValidPointers.c:55:3: error: Incorrect use of PetscValidCharPointer(), use PetscValidPointer() instead [-fincompatible-function]:
499  53: /* incorrect */
500  54: PetscValidCharPointer(a, 1);
501> 55: PetscValidCharPointer(b, 2);
502      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(b, 2);
510                            ^
511  56: PetscValidIntPointer(c, 3);
512  57: PetscValidIntPointer(d, 4);
513./src/sys/tests/linter/testValidPointers.c:56:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
514  54: PetscValidCharPointer(a, 1);
515  55: PetscValidCharPointer(b, 2);
516> 56: PetscValidIntPointer(c, 3);
517      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(c, 3);
525                           ^
526  57: PetscValidIntPointer(d, 4);
527  58: PetscValidIntPointer(e, 5);
528./src/sys/tests/linter/testValidPointers.c:57:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
529  55: PetscValidCharPointer(b, 2);
530  56: PetscValidIntPointer(c, 3);
531> 57: PetscValidIntPointer(d, 4);
532      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(d, 4);
540                           ^
541  58: PetscValidIntPointer(e, 5);
542  59: PetscValidBoolPointer(f, 6);
543./src/sys/tests/linter/testValidPointers.c:58:3: error: Incorrect use of PetscValidIntPointer(), use PetscValidPointer() instead [-fincompatible-function]:
544  56: PetscValidIntPointer(c, 3);
545  57: PetscValidIntPointer(d, 4);
546> 58: PetscValidIntPointer(e, 5);
547      ^^^^^^^^^^^^^^^^^^^^^^^^^^
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(e, 5);
555                           ^
556  59: PetscValidBoolPointer(f, 6);
557  60: PetscValidScalarPointer(g, 7);
558./src/sys/tests/linter/testValidPointers.c:59:3: error: Incorrect use of PetscValidBoolPointer(), use PetscValidPointer() instead [-fincompatible-function]:
559  57: PetscValidIntPointer(d, 4);
560  58: PetscValidIntPointer(e, 5);
561> 59: PetscValidBoolPointer(f, 6);
562      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(f, 6);
570                            ^
571  60: PetscValidScalarPointer(g, 7);
572  61: PetscValidRealPointer(h, 8);
573./src/sys/tests/linter/testValidPointers.c:60:3: error: Incorrect use of PetscValidScalarPointer(), use PetscValidPointer() instead [-fincompatible-function]:
574  58: PetscValidIntPointer(e, 5);
575  59: PetscValidBoolPointer(f, 6);
576> 60: PetscValidScalarPointer(g, 7);
577      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(g, 7);
585                              ^
586  61: PetscValidRealPointer(h, 8);
587  62:
588./src/sys/tests/linter/testValidPointers.c:61:3: error: Incorrect use of PetscValidRealPointer(), use PetscValidPointer() instead [-fincompatible-function]:
589  59: PetscValidBoolPointer(f, 6);
590  60: PetscValidScalarPointer(g, 7);
591> 61: PetscValidRealPointer(h, 8);
592      ^^^^^^^^^^^^^^^^^^^^^^^^^^^
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(h, 8);
600                            ^
601  62:
602  63: /* correct */
603--------------------------------------------------------------------------------------------
604<--- LEFT --->
605