Disable -Wnon-virtual-dtor warning for GCC and Clang.
This commit is contained in:
parent
9c59bb25ff
commit
9205d9093b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user