This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Warnings about rcs_id strings: let's settle this
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Kean Johnston <jkj at sco dot com>
- Cc: "'Zack Weinberg'" <zack at codesourcery dot com>, "'Joe Buck'" <jbuck at synopsys dot com>, gcc at gcc dot gnu dot org
- Date: Sat, 3 May 2003 04:31:00 +1000
- Subject: Re: Warnings about rcs_id strings: let's settle this
- References: <87fznxntq5.fsf@egil.codesourcery.com> <009301c310d6$b0e3f100$03419384@shrike>
On 02-May-2003, Kean Johnston <jkj@sco.com> wrote:
> the original
> construct that spawned this thread was almost always written as
> static char *sccsid = "blah";. By the way, why does THAT not emit a
> warning? You are assigning a const char * to a char *, thereby
> potentially losing the const-ness of it. I just tried with the head
> version and -Wall -Wextra -Wcast-qual didn't emit a warning.
"-Wwrite-strings" is the one you're looking for.
The manual explains why it is not in -Wall.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.