diff options
author | Bernard Normier <bernard@zeroc.com> | 2012-12-26 19:08:48 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2012-12-26 19:08:48 +0000 |
commit | ee483bab1e0d0e6acdb0310007757c00d10f64c2 (patch) | |
tree | 425ca084bce7c1b016c4a9f64e24a0e8cbc7542d /cpp/include | |
parent | Fixed (ICE-5035) - Added check to detect mingw compiler (diff) | |
download | ice-ee483bab1e0d0e6acdb0310007757c00d10f64c2.tar.bz2 ice-ee483bab1e0d0e6acdb0310007757c00d10f64c2.tar.xz ice-ee483bab1e0d0e6acdb0310007757c00d10f64c2.zip |
Fixed GCC warnings; added -Werror to GCC builds
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/IceUtil/DisableWarnings.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/DisableWarnings.h b/cpp/include/IceUtil/DisableWarnings.h index 184961a0ac4..45218dae4ed 100644 --- a/cpp/include/IceUtil/DisableWarnings.h +++ b/cpp/include/IceUtil/DisableWarnings.h @@ -11,7 +11,7 @@ #define ICE_UTIL_DISABLEWARNINGS_H // -// This header file disables various annoying compiler warnings that +// This header file disables or makes non-fatal various compiler warnings that // we don't want. // // IMPORTANT: Do *not* include this header file in another public header file! @@ -20,6 +20,9 @@ // header file in Ice *source* files! // +// +// Microsoft Visual C++ +// #if defined(_MSC_VER) # define _CRT_SECURE_NO_DEPRECATE 1 // C4996 '<C function>' was declared deprecated/ # pragma warning( 4 : 4996 ) // C4996 'std::<function>' was declared deprecated @@ -30,4 +33,13 @@ # endif #endif + +// +// GCC +// +#if defined(__GNUC__) +# pragma GCC diagnostic warning "-Wdeprecated-declarations" +#endif + + #endif |