This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: "format not a string literal"
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: "format not a string literal"
- From: Ulrich Drepper <drepper at cygnus dot com>
- Date: 11 Oct 1999 12:42:07 -0700
- Cc: gcc-bugs at sourceware dot cygnus dot com, aj at suse dot de, egcs-patches at egcs dot cygnus dot com, raeburn at raeburn dot org
- References: <199910111921.PAA07031@caip.rutgers.edu>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
"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 `------------------------