gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
begin_ignore_warnings_eigen.hpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
17 
18 
19 #include "gambit/cmake/cmake_variables.hpp"
20 
21 #ifdef SUPPRESS_LIBRARY_WARNINGS
22 
23  // GCC:
24  #ifdef __GNUC__
25  // Save diagnostic state
26  #pragma GCC diagnostic push
27  // Don't care if an old compiler version doesn't recognize all the pragmas
28  #pragma GCC diagnostic ignored "-Wpragmas"
29  // Turn off some warnings
30  #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31  #pragma GCC diagnostic ignored "-Wdeprecated-copy"
32  #endif
33 
34  // Clang:
35  #ifdef __clang__
36  #ifndef __ICC // icpc apparently also defines __clang__ so need this check too
37  // Save diagnostic state
38  #pragma clang diagnostic push
39  // Don't care if an old compiler version doesn't recognize all the pragmas
40  #pragma clang diagnostic ignored "-Wpragmas"
41  // Turn off some warnings
42  #pragma clang diagnostic ignored "-Wdeprecated-declarations"
43  #pragma clang diagnostic ignored "-Wdeprecated-copy"
44  #endif
45  #endif
46 
47 #endif