Summary: | -Wformat-nonliteral could see more things as literals | ||
---|---|---|---|
Product: | gcc | Reporter: | Rasmus Villemoes <rv> |
Component: | c | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | NEW --- | ||
Severity: | normal | CC: | msebor |
Priority: | P3 | Keywords: | diagnostic |
Version: | 8.2.0 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2018-11-06 00:00:00 |
Description
Rasmus Villemoes
2018-11-05 09:20:25 UTC
You'd need dataflow information that's not available at that point in the front end to know that the initializer is indeed the value of fmt at that point in the code. Confirmed. It could be done by integrating -Wformat with -Wformat-overflow. The latter runs without optimization as well as with it so the integration shouldn't result in too many false negatives. |