quiet_unit_test.hpp
Go to the documentation of this file.
1 #ifndef cetlib_quiet_unit_test_hpp
2 #define cetlib_quiet_unit_test_hpp
3 
4 // Use this header, rather than unit_test.hpp directly, to include the
5 // GCC pragma magic to silence warnings about overloaded virtual
6 // functions in boost/test/unit_test_log_formatter.hpp.
7 
8 #pragma GCC diagnostic push
9 #pragma GCC diagnostic ignored "-Woverloaded-virtual"
10 #if __APPLE__ && __MACH__
11 #pragma GCC diagnostic ignored "-Wunused-parameter"
12 #endif
13 #include "boost/test/unit_test.hpp"
14 #pragma GCC diagnostic pop
15 
16 #endif /* cetlib_quiet_unit_test_hpp */