Commit 5f7ea44
committed
Avoid multiline warning strings in libcpychecker.formatstrings
When building with gcc 6, warnings emitted by
libcpychecker.formatstrings.WrongNumberOfVars
showed some whitespace differences in the final " [-Werror]":
ERROR: test_too_many_varargs (__main__.PyArg_ParseTupleAndKeywordsTests)
- [-Werror]
+ [-Werror]
I'm not sure exactly why this has started, but it seems error-prone to
be sending multiline strings through warning_at, so this patch standardizes
these warnings to emit just one line for the warning_at, and then print
the additional information to stderr via extra_info (), generalizing the
approach already used by MismatchingType.1 parent 3a5add3 commit 5f7ea44
File tree
3 files changed
+32
-31
lines changed- libcpychecker
- tests/cpychecker/PyArg_ParseTuple/incorrect_converters
3 files changed
+32
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
| |||
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
| |||
380 | 389 | | |
381 | 390 | | |
382 | 391 | | |
383 | | - | |
384 | | - | |
| 392 | + | |
| 393 | + | |
385 | 394 | | |
386 | 395 | | |
387 | 396 | | |
| |||
392 | 401 | | |
393 | 402 | | |
394 | 403 | | |
395 | | - | |
| 404 | + | |
396 | 405 | | |
397 | 406 | | |
398 | 407 | | |
399 | | - | |
| 408 | + | |
400 | 409 | | |
401 | 410 | | |
402 | 411 | | |
| |||
408 | 417 | | |
409 | 418 | | |
410 | 419 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 420 | + | |
414 | 421 | | |
415 | 422 | | |
416 | 423 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
| 188 | + | |
190 | 189 | | |
191 | 190 | | |
192 | 191 | | |
| |||
202 | 201 | | |
203 | 202 | | |
204 | 203 | | |
205 | | - | |
| 204 | + | |
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | | - | |
211 | | - | |
| 209 | + | |
212 | 210 | | |
213 | 211 | | |
214 | 212 | | |
| |||
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
531 | | - | |
| 529 | + | |
532 | 530 | | |
533 | 531 | | |
534 | | - | |
535 | | - | |
| 532 | + | |
536 | 533 | | |
537 | 534 | | |
538 | 535 | | |
| |||
544 | 541 | | |
545 | 542 | | |
546 | 543 | | |
547 | | - | |
| 544 | + | |
548 | 545 | | |
549 | 546 | | |
550 | 547 | | |
551 | 548 | | |
552 | | - | |
553 | | - | |
| 549 | + | |
554 | 550 | | |
555 | 551 | | |
556 | 552 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
0 commit comments