From 9205d9093beec1e28c8d13cf4c9906b821380447 Mon Sep 17 00:00:00 2001 From: Kostya Bazhanov Date: Thu, 23 Apr 2015 22:05:19 +0300 Subject: [PATCH] Disable -Wnon-virtual-dtor warning for GCC and Clang. --- src/cxxopts.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/src/cxxopts.hpp b/src/cxxopts.hpp index 9b21480..90dd01f 100644 --- a/src/cxxopts.hpp +++ b/src/cxxopts.hpp @@ -25,6 +25,11 @@ THE SOFTWARE. #ifndef CXX_OPTS_HPP #define CXX_OPTS_HPP +#if defined(__GNUC__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wnon-virtual-dtor" +#endif + #include #include #include @@ -1299,4 +1304,9 @@ Options::group_help(const std::string& group) const } } + +#if defined(__GNU__) +#pragma GCC diagnostic pop +#endif + #endif //CXX_OPTS_HPP -- libgit2 0.21.4