This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]