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: "format not a string literal"


"Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> writes:

> 	Does this gcc patch help out?  I'd be interested to know if
> any other false positives remain.

This solves the obvious problems.  There is still case:

	printf (gettext ("%s %d"), "foo", 42);

you have to take the functions registered using
`record_international_format' into account.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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