Commit 9205d9093beec1e28c8d13cf4c9906b821380447

Authored by Kostya Bazhanov
1 parent 9c59bb25

Disable -Wnon-virtual-dtor warning for GCC and Clang.

Showing 1 changed file with 10 additions and 0 deletions
src/cxxopts.hpp
... ... @@ -25,6 +25,11 @@ THE SOFTWARE.
25 25 #ifndef CXX_OPTS_HPP
26 26 #define CXX_OPTS_HPP
27 27  
  28 +#if defined(__GNUC__)
  29 +#pragma GCC diagnostic push
  30 +#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
  31 +#endif
  32 +
28 33 #include <exception>
29 34 #include <iostream>
30 35 #include <map>
... ... @@ -1299,4 +1304,9 @@ Options::group_help(const std::string&amp; group) const
1299 1304 }
1300 1305  
1301 1306 }
  1307 +
  1308 +#if defined(__GNU__)
  1309 +#pragma GCC diagnostic pop
  1310 +#endif
  1311 +
1302 1312 #endif //CXX_OPTS_HPP
... ...