Commit 5435ff2
committed
[NFC][BoundsSafety] Unbreak
This test was broken by llvm#166738
```
commit 1df7b51
Author: Vladimir Vuksanovic <[email protected]>
Date: Fri Dec 5 15:04:12 2025 +0100
[Sema] Suggest missing format attributes (llvm#166738)
```
It seems a different warning (`-Wmissing-format-attribute`) is emitted
for the case where a non-format string argument is passed to `foo`. This
new behavior seems a little confusing
* There's no longer a warning about the call to `foo` not taking a
string literal.
* The suggested attribute conflicts with the `format` attribute that's
already on bar.
Dealing with this odd behavior is out-of-scope though for fixing this
test case though.
rdar://166071403BoundsSafety/Sema/check-format-arguments.c
1 parent deb71df commit 5435ff2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
0 commit comments