gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
begin_ignore_warnings_hepmc.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 "-Wunused-parameter"
31  #endif
32 
33  // Clang:
34  #ifdef __clang__
35  #ifndef __ICC // icpc apparently also defines __clang__ so need this check too
36  // Save diagnostic state
37  #pragma clang diagnostic push
38  // Don't care if an old compiler version doesn't recognize all the pragmas
39  #pragma clang diagnostic ignored "-Wpragmas"
40  // Turn off some warnings
41  #pragma clang diagnostic ignored "-Wunused-parameter"
42  #endif
43  #endif
44 
45 #endif