Go to the documentation of this file.
22 #ifdef SILENCE_EXTERNAL_WARNINGS
28 # define __GNUC_VERSION__ (__GNUC__ * 100 \
30 # if (__GNUC_VERSION__ >= 406)
31 # define GNU_COMPILER_OK 1
33 # define GNU_COMPILER_OK 0
36 # define GNU_COMPILER_OK 0
41 #if defined(__clang__)
42 # define CLANG_COMPILER_OK 1
44 # define CLANG_COMPILER_OK 0
48 #define COMPATIBLE_COMPILER (GNU_COMPILER_OK || CLANG_COMPILER_OK)
55 #if COMPATIBLE_COMPILER
56 #warning "The disable/enable warnings header files have moved to opm-common"
58 #pragma GCC diagnostic push
61 #pragma GCC diagnostic ignored "-Wpragmas"
62 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
63 #pragma GCC diagnostic ignored "-Wdeprecated-register"
64 #pragma GCC diagnostic ignored "-Wignored-qualifiers"
65 #pragma GCC diagnostic ignored "-Wmismatched-tags"
66 #pragma GCC diagnostic ignored "-Wshadow"
67 #pragma GCC diagnostic ignored "-Wsign-compare"
68 #pragma GCC diagnostic ignored "-Wunused-parameter"
69 #pragma GCC diagnostic ignored "-Wtautological-compare"
70 #pragma GCC diagnostic ignored "-Wtype-limits"
71 #pragma GCC diagnostic ignored "-Wunused-function"
72 #pragma GCC diagnostic ignored "-Wunneeded-internal-declaration"
73 #pragma GCC diagnostic ignored "-Wunused-private-field"
74 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
75 #pragma GCC diagnostic ignored "-Wunused-variable"
76 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
77 #pragma GCC diagnostic ignored "-Wcast-align"
78 #endif // COMPATIBLE_COMPILER
80 #endif // SILENCE_EXTERNAL_WARNINGS
|