How to make g++ be less strict with standart/third-party headers

Sat Aug 20 15:02:00 GMT 2005


When compiling my project, G++ finds lots of warnings generated by "-Weffc++" option in standard headers (such as iostream, vector, string etc.) and in headers from ACE. How can I force G++ to ignore warnings in these files? People already offered me a solution which works for VC - to use "#pragma warning". But this approach doesn't work with G++.
I use MinGW (Win32 system).

  Thank you in advance,

More information about the Gcc-help mailing list