This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Removing annoying warnings


Loc 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]