Warning fixes for gcc-7

warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
This commit is contained in:
William S Fulton 2017-02-06 20:12:40 +00:00
commit 760c008311
24 changed files with 245 additions and 11 deletions

View file

@ -8,14 +8,17 @@
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif
#include <string>
#if __GNUC__ >= 7
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated" // dynamic exception specifications are deprecated in C++11
#endif
%}
%include <std_string.i>
// DEFINE exceptions in header section using std::runtime_error
%{
#include <string>
#include <exception>
#include <iostream>