This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-Wformat warnings
- To: bug-gcc at gnu dot org, Zack Weinberg <zack at rabi dot columbia dot edu>, Eric Christopher <echristo at cygnus dot com>
- Subject: -Wformat warnings
- From: Martin Buchholz <martin at xemacs dot org>
- Date: Thu, 27 Jan 2000 19:43:23 -0800 (PST)
- Reply-to: martin at xemacs dot org
The -Wformat warnings are nice, but how does one turn them off when
the format string arg is non-constant? In my opinion, the following
warning should never appear - it's a useless meta-warning. There
doesn't seem to be an obvious way to suppress them.
/xemacs/ws/dev/src/lread.c:312: warning: format not a string literal, argument types not checked
It would be nice if warnings could be properly done for this:
fprintf (stderr,
(c >= 0x20 && c <= 0x7E) ? "UU%c" :
((c == '\n') ? "UU\\n\n" : "UU\\%o"), c);