This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: "format not a string literal"
- To: Eli Zaretskii <eliz at gnu dot org>
- Subject: Re: "format not a string literal"
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 14 Oct 1999 11:25:58 -0600
- cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, drepper at cygnus dot com, egcs-patches at egcs dot cygnus dot com, gcc-bugs at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <199910141718.NAA24590@mescaline.gnu.org>you write:
> However, I think that if a compiler cannot feasibly check the code, it
> is not a reason good enough for it to issue a warning. Warnings should,
> IMHO, be issued only when the compiler *can* analyze the code and the
> analysis shows that it is buggy or dubious.
In that case you might as well throw away the code for uninitialized variables,
unreachable code, and a variety of others.
Most warnings are not and will not be 100% accurate. You are free to ignore
them if they're not of interest to you.
As far as I'm concerned the new warning will stay, but we need an option to
turn it off.
jeff