This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to fix legit "format not a string literal" warnings part 1/2
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Patch to fix legit "format not a string literal" warnings part 1/2
- From: Ken Raeburn <raeburn at raeburn dot org>
- Date: 14 Oct 1999 02:48:48 -0400
- Cc: egcs-patches at egcs dot cygnus dot com
- References: <199910121526.LAA08516@caip.rutgers.edu>
"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:
> Here's a patch to silence many of the legitimate warnings
> stemming from the new behavior of -Wformat, namely "format not a
> string literal..."
Thanks for following up on this aspect of my change.
Some of the cases you fixed represent what I think are deficiencies in
the format-checking capabilities -- the code was obviously correct
before, the compiler just couldn't figure it out. Hard ones to fix,
though, without moving the checking to after various optimization
passes, and retaining a lot of additional information. :-(