xref: /petsc/src/sys/tests/linter/output/testDuplicates.out (revision bcd3bd92eda2d5998e2f14c4bbfb33bd936bdc3e)
1<--- FIXED --->
2--------------------------------------------------------------------------------------------
3./src/sys/tests/linter/testDuplicates.c:10:25: error: Argument number doesn't match for 'b'. Expected '2', found '5' [-fmatching-arg-num]:
4  8 : PetscAssertPointer(a, 1);
5  9 : /* no remove */
6> 10: PetscAssertPointer(b, 5);
7                            ^
8  11: /* ~should~ be removed but won't be */
9  12: PetscAssertPointer(b, 7);
10
11./src/sys/tests/linter/testDuplicates.c:3:55 Note: 'b' is traceable to argument #2 'b' in enclosing function here:
12  1: #include <petsc/private/petscimpl.h>
13  2:
14> 3: PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b)
15                                                           ^^^^^^^^^^^^^^
16  4: {
17  5:   /* no remove */
18./src/sys/tests/linter/testDuplicates.c:12:25: error: Argument number doesn't match for 'b'. Expected '2', found '7' [-fmatching-arg-num]:
19  10: PetscAssertPointer(b, 5);
20  11: /* ~should~ be removed but won't be */
21> 12: PetscAssertPointer(b, 7);
22                            ^
23  13: PetscAssertPointer(b, 3);
24  14: return 0;
25
26./src/sys/tests/linter/testDuplicates.c:3:55 Note: 'b' is traceable to argument #2 'b' in enclosing function here:
27  1: #include <petsc/private/petscimpl.h>
28  2:
29> 3: PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b)
30                                                           ^^^^^^^^^^^^^^
31  4: {
32  5:   /* no remove */
33./src/sys/tests/linter/testDuplicates.c:13:25: error: Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]:
34  11:   /* ~should~ be removed but won't be */
35  12:   PetscAssertPointer(b, 7);
36> 13:   PetscAssertPointer(b, 3);
37                              ^
38  14:   return 0;
39  15: }
40
41./src/sys/tests/linter/testDuplicates.c:3:55 Note: 'b' is traceable to argument #2 'b' in enclosing function here:
42  1: #include <petsc/private/petscimpl.h>
43  2:
44> 3: PetscErrorCode testDuplicatesWithChanges(PetscInt *a, PetscScalar *b)
45                                                           ^^^^^^^^^^^^^^
46  4: {
47  5:   /* no remove */
48./src/sys/tests/linter/testDuplicates.c:8:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
49  4: {
50  5:   /* no remove */
51> 6:   PetscAssertPointer(a, 1);
52       ^^^^^^^^^^^^^^^^^^^^^^^^
53  7:   /* remove */
54  8:   PetscAssertPointer(a, 1);
55./src/sys/tests/linter/testDuplicates.c:23:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
56  18: {
57  19:   /* no remove */
58> 20:   PetscAssertPointer(a, 1);
59        ^^^^^^^^^^^^^^^^^^^^^^^^
60  21:   PetscAssertPointer(b, 2);
61  22:   /* remove */
62  23:   PetscAssertPointer(a, 1);
63./src/sys/tests/linter/testDuplicates.c:24:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
64  19: /* no remove */
65  20: PetscAssertPointer(a, 1);
66> 21: PetscAssertPointer(b, 2);
67      ^^^^^^^^^^^^^^^^^^^^^^^^
68  22: /* remove */
69  23: PetscAssertPointer(a, 1);
70  24: PetscAssertPointer(b, 2);
71./src/sys/tests/linter/testDuplicates.c:27:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
72  18: {
73  19:   /* no remove */
74> 20:   PetscAssertPointer(a, 1);
75        ^^^^^^^^^^^^^^^^^^^^^^^^
76  21:   PetscAssertPointer(b, 2);
77  22:   /* remove */
78  23:   PetscAssertPointer(a, 1);
79  24:   PetscAssertPointer(b, 2);
80  25:   {
81  26:     /* remove */
82  27:     PetscAssertPointer(a, 1);
83./src/sys/tests/linter/testDuplicates.c:28:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
84  19: /* no remove */
85  20: PetscAssertPointer(a, 1);
86> 21: PetscAssertPointer(b, 2);
87      ^^^^^^^^^^^^^^^^^^^^^^^^
88  22: /* remove */
89  23: PetscAssertPointer(a, 1);
90  24: PetscAssertPointer(b, 2);
91  25: {
92  26:   /* remove */
93  27:   PetscAssertPointer(a, 1);
94  28:   PetscAssertPointer(b, 2);
95./src/sys/tests/linter/testDuplicates.c:39:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
96  34: {
97  35:   /* no remove */
98> 36:   PetscAssertPointer(a, 1);
99        ^^^^^^^^^^^^^^^^^^^^^^^^
100  37:   PetscAssertPointer(b, 2);
101  38:   /* remove */
102  39:   PetscAssertPointer(a, 1);
103./src/sys/tests/linter/testDuplicates.c:40:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
104  35: /* no remove */
105  36: PetscAssertPointer(a, 1);
106> 37: PetscAssertPointer(b, 2);
107      ^^^^^^^^^^^^^^^^^^^^^^^^
108  38: /* remove */
109  39: PetscAssertPointer(a, 1);
110  40: PetscAssertPointer(b, 2);
111./src/sys/tests/linter/testDuplicates.c:43:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
112  34: {
113  35:   /* no remove */
114> 36:   PetscAssertPointer(a, 1);
115        ^^^^^^^^^^^^^^^^^^^^^^^^
116  37:   PetscAssertPointer(b, 2);
117  38:   /* remove */
118  39:   PetscAssertPointer(a, 1);
119  40:   PetscAssertPointer(b, 2);
120  41:   {
121  42:     /* remove */
122  43:     PetscAssertPointer(a, 1);
123./src/sys/tests/linter/testDuplicates.c:44:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
124  35: /* no remove */
125  36: PetscAssertPointer(a, 1);
126> 37: PetscAssertPointer(b, 2);
127      ^^^^^^^^^^^^^^^^^^^^^^^^
128  38: /* remove */
129  39: PetscAssertPointer(a, 1);
130  40: PetscAssertPointer(b, 2);
131  41: {
132  42:   /* remove */
133  43:   PetscAssertPointer(a, 1);
134  44:   PetscAssertPointer(b, 2);
135./src/sys/tests/linter/testDuplicates.c:48:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
136  34: {
137  35:   /* no remove */
138> 36:   PetscAssertPointer(a, 1);
139        ^^^^^^^^^^^^^^^^^^^^^^^^
140  37:   PetscAssertPointer(b, 2);
141  38:   /* remove */
142  39:   PetscAssertPointer(a, 1);
143  40:   PetscAssertPointer(b, 2);
144  41:   {
145  42:     /* remove */
146  43:     PetscAssertPointer(a, 1);
147  44:     PetscAssertPointer(b, 2);
148  45:   }
149  46:   {
150  47:     /* remove */
151  48:     PetscAssertPointer(a, 1);
152./src/sys/tests/linter/testDuplicates.c:49:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
153  35: /* no remove */
154  36: PetscAssertPointer(a, 1);
155> 37: PetscAssertPointer(b, 2);
156      ^^^^^^^^^^^^^^^^^^^^^^^^
157  38: /* remove */
158  39: PetscAssertPointer(a, 1);
159  40: PetscAssertPointer(b, 2);
160  41: {
161  42:   /* remove */
162  43:   PetscAssertPointer(a, 1);
163  44:   PetscAssertPointer(b, 2);
164  45: }
165  46: {
166  47:   /* remove */
167  48:   PetscAssertPointer(a, 1);
168  49:   PetscAssertPointer(b, 2);
169./src/sys/tests/linter/testDuplicates.c:79:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
170  72: {
171  73:   /* no remove */
172> 74:   PetscAssertPointer(a, 1);
173        ^^^^^^^^^^^^^^^^^^^^^^^^
174  75:   PetscAssertPointer(b, 2);
175  76:   switch (cond) {
176  77:   case PETSC_TRUE:
177  78:     /* remove */
178  79:     PetscAssertPointer(a, 1);
179./src/sys/tests/linter/testDuplicates.c:80:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
180  73: /* no remove */
181  74: PetscAssertPointer(a, 1);
182> 75: PetscAssertPointer(b, 2);
183      ^^^^^^^^^^^^^^^^^^^^^^^^
184  76: switch (cond) {
185  77: case PETSC_TRUE:
186  78:   /* remove */
187  79:   PetscAssertPointer(a, 1);
188  80:   PetscAssertPointer(b, 2);
189./src/sys/tests/linter/testDuplicates.c:84:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
190  72: {
191  73:   /* no remove */
192> 74:   PetscAssertPointer(a, 1);
193        ^^^^^^^^^^^^^^^^^^^^^^^^
194  75:   PetscAssertPointer(b, 2);
195  76:   switch (cond) {
196  77:   case PETSC_TRUE:
197  78:     /* remove */
198  79:     PetscAssertPointer(a, 1);
199  80:     PetscAssertPointer(b, 2);
200  81:     break;
201  82:   case PETSC_FALSE:
202  83:     /* remove */
203  84:     PetscAssertPointer(a, 1);
204./src/sys/tests/linter/testDuplicates.c:85:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
205  73: /* no remove */
206  74: PetscAssertPointer(a, 1);
207> 75: PetscAssertPointer(b, 2);
208      ^^^^^^^^^^^^^^^^^^^^^^^^
209  76: switch (cond) {
210  77: case PETSC_TRUE:
211  78:   /* remove */
212  79:   PetscAssertPointer(a, 1);
213  80:   PetscAssertPointer(b, 2);
214  81:   break;
215  82: case PETSC_FALSE:
216  83:   /* remove */
217  84:   PetscAssertPointer(a, 1);
218  85:   PetscAssertPointer(b, 2);
219./src/sys/tests/linter/testDuplicates.c:112:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
220  106: {
221  107:   /* no remove */
222> 108:   PetscAssertPointer(a, 1);
223         ^^^^^^^^^^^^^^^^^^^^^^^^
224  109:   PetscAssertPointer(b, 2);
225  110:   if (cond) {
226  111:     /* remove */
227  112:     PetscAssertPointer(a, 1);
228./src/sys/tests/linter/testDuplicates.c:113:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
229  107: /* no remove */
230  108: PetscAssertPointer(a, 1);
231> 109: PetscAssertPointer(b, 2);
232       ^^^^^^^^^^^^^^^^^^^^^^^^
233  110: if (cond) {
234  111:   /* remove */
235  112:   PetscAssertPointer(a, 1);
236  113:   PetscAssertPointer(b, 2);
237./src/sys/tests/linter/testDuplicates.c:116:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
238  106: {
239  107:   /* no remove */
240> 108:   PetscAssertPointer(a, 1);
241         ^^^^^^^^^^^^^^^^^^^^^^^^
242  109:   PetscAssertPointer(b, 2);
243  110:   if (cond) {
244  111:     /* remove */
245  112:     PetscAssertPointer(a, 1);
246  113:     PetscAssertPointer(b, 2);
247  114:   } else {
248  115:     /* remove */
249  116:     PetscAssertPointer(a, 1);
250./src/sys/tests/linter/testDuplicates.c:117:5: error: Duplicate function found previous identical usage [-fduplicate-function]:
251  107: /* no remove */
252  108: PetscAssertPointer(a, 1);
253> 109: PetscAssertPointer(b, 2);
254       ^^^^^^^^^^^^^^^^^^^^^^^^
255  110: if (cond) {
256  111:   /* remove */
257  112:   PetscAssertPointer(a, 1);
258  113:   PetscAssertPointer(b, 2);
259  114: } else {
260  115:   /* remove */
261  116:   PetscAssertPointer(a, 1);
262  117:   PetscAssertPointer(b, 2);
263--------------------------------------------------------------------------------------------
264<--- LEFT --->
265