This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suppressing specific compiler warnings
- From: llewelly at xmission dot com
- To: "Banibrata Dutta" <dutta at india dot hp dot com>
- Cc: "'Ranjit Mathew'" <rmathew at gmail dot com>, <gcc at gcc dot gnu dot org>
- Date: 26 May 2004 13:17:36 -0600
- Subject: Re: Suppressing specific compiler warnings
- References: <003001c442fd$d3aff620$c0714c0f@nt13192>
"Banibrata Dutta" <dutta@india.hp.com> writes:
> Hi Ranjit:
>
> Thanks for pointing it out. I'd seen the -Wno-xxx so many times,
> but never thought about the reason for using it.
>
> BTW, wouldn't it be a good feature if all warnings (and errors)
> were numbered, s.t. final warning (or error) displayed is something
> like a --
> <number>: <warning/error message>
>
> And then have option like -Wno-<number>... Something quite similar
> to the HP compilers!
Numbers are for computers. Names for people. A generalization,
but I am opposed to numbering warning kinds, on the
grounds that numbers tend to be harder to remember. If you are
reading a makefile, and you see -Wno-1492, you have no clue why,
but if you see -Wno-unused you know what is going on.
> Also, this would make the process of internationalization of gcc/g++
> easy.
Pardon my ignorance, but how so?