Removing annoying warnings
Gabriel Dos Reis
gdr@codesourcery.com
Thu Aug 23 08:50:00 GMT 2001
Loïc Joly <Loic.Joly@renault.com> writes:
| Hello,
|
| I wonder if there is any way to locally disable a warning that I know is
| useless (in my case, a warning stating that my class has not public
| constructor and no friends, which is normal, since it is a singleton) ?
|
| In the other compiler I know, there is a pragma way to do this, is there
| anything similar with g++ ? I loocked in the doc, but could not find
| anything.
You have -Wno-ctor-dtor-privacy, but it works on translation-unit
basis.
-- Gaby
More information about the Gcc
mailing list