Commit 85742bc
authored
Avoid using stderr explicitly (#3089)
Motivation
It's tempting for us to use the FILE * for stderr whenever we want to
print to it. However, the Linux libc modules aren't appropriately
annotated to call that field constant, and indeed it isn't. This causes
Swift to throw a fit if we even touch it.
Modifications
Introduce an awkward function that issues direct writes to stderr
instead of using the FILE *.
Result
Swift is happier.1 parent c2ccad6 commit 85742bc
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
| |||
438 | 454 | | |
439 | 455 | | |
440 | 456 | | |
441 | | - | |
| 457 | + | |
442 | 458 | | |
443 | 459 | | |
444 | 460 | | |
445 | | - | |
446 | | - | |
| 461 | + | |
447 | 462 | | |
448 | 463 | | |
449 | 464 | | |
| |||
0 commit comments