Patch to fix legit "format not a string literal" warnings part 1/2

Ken Raeburn raeburn@raeburn.org
Sun Oct 31 23:33:00 GMT 1999


"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. :-(



More information about the Gcc-patches mailing list