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

This commit is contained in:
Kostya Bazhanov 2015-04-23 22:05:19 +03:00
parent 9c59bb25ff
commit 9205d9093b

View File

@ -25,6 +25,11 @@ THE SOFTWARE.
#ifndef CXX_OPTS_HPP #ifndef CXX_OPTS_HPP
#define CXX_OPTS_HPP #define CXX_OPTS_HPP
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#endif
#include <exception> #include <exception>
#include <iostream> #include <iostream>
#include <map> #include <map>
@ -1299,4 +1304,9 @@ Options::group_help(const std::string& group) const
} }
} }
#if defined(__GNU__)
#pragma GCC diagnostic pop
#endif
#endif //CXX_OPTS_HPP #endif //CXX_OPTS_HPP