Suppressing specific compiler warnings
llewelly@xmission.com
llewelly@xmission.com
Wed May 26 19:17:00 GMT 2004
"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?
More information about the Gcc
mailing list