[Bug c/87183] -Wformat: format-extra-args fails to catch ex: printf(PRIu32, 1)

2018-09-01 Thread noah.pendleton at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87183 --- Comment #3 from Noah Pendleton --- Yep, looks like it, enabling `-Wsystem-headers` yields the expected result: ```bash gcc -Wall -Werror -Wsystem-headers test.c In file included from test.c:1: test.c: In function 'main': test.c:5:12: error: t

[Bug c/87183] -Wformat: format-extra-args fails to catch ex: printf(PRIu32, 1)

2018-09-01 Thread noah.pendleton at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87183 --- Comment #1 from Noah Pendleton --- Typo, the description should read- "Using format specifiers but omitting the `%` prefix causes the `-Werror=format-extra-args` error to not be **emitted**:" 😬

[Bug c/87183] New: -Wformat: format-extra-args fails to catch ex: printf(PRIu32, 1)

2018-09-01 Thread noah.pendleton at gmail dot com
Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: noah.pendleton at gmail dot com Target Milestone: --- Created attachment 44644 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44644&action=edit preprocessed file >>Descr