diff --git a/src/Base/swigpyrun.cpp b/src/Base/swigpyrun.cpp index 9b6f43db50..c7da3f0c90 100644 --- a/src/Base/swigpyrun.cpp +++ b/src/Base/swigpyrun.cpp @@ -25,10 +25,17 @@ #include "PyExport.h" #include "Exception.h" #if (defined(HAVE_SWIG) && (HAVE_SWIG == 1)) +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_python { #define SWIG_PYTHON_NO_BUILD_NONE #include #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop #endif +#endif // HAVE_SWIG diff --git a/src/Base/swigpyrun_1.3.25.cpp b/src/Base/swigpyrun_1.3.25.cpp index 50d939c6b3..da1fffdecf 100644 --- a/src/Base/swigpyrun_1.3.25.cpp +++ b/src/Base/swigpyrun_1.3.25.cpp @@ -24,8 +24,15 @@ #include "PreCompiled.h" #include "PyExport.h" #include "Exception.h" +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_1_3_25 { #include "swigpyrun_1.3.25.h" #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif diff --git a/src/Base/swigpyrun_1.3.33.cpp b/src/Base/swigpyrun_1.3.33.cpp index 9bce933188..98666dd14d 100644 --- a/src/Base/swigpyrun_1.3.33.cpp +++ b/src/Base/swigpyrun_1.3.33.cpp @@ -24,9 +24,16 @@ #include "PreCompiled.h" #include "PyExport.h" #include "Exception.h" +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_1_3_33 { #define SWIG_PYTHON_NO_BUILD_NONE #include "swigpyrun_1.3.33.h" #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif diff --git a/src/Base/swigpyrun_1.3.36.cpp b/src/Base/swigpyrun_1.3.36.cpp index 0b58871f26..a674709f52 100644 --- a/src/Base/swigpyrun_1.3.36.cpp +++ b/src/Base/swigpyrun_1.3.36.cpp @@ -24,9 +24,16 @@ #include "PreCompiled.h" #include "PyExport.h" #include "Exception.h" +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_1_3_36 { #define SWIG_PYTHON_NO_BUILD_NONE #include "swigpyrun_1.3.36.h" #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif diff --git a/src/Base/swigpyrun_1.3.38.cpp b/src/Base/swigpyrun_1.3.38.cpp index 739b218659..18c4efd806 100644 --- a/src/Base/swigpyrun_1.3.38.cpp +++ b/src/Base/swigpyrun_1.3.38.cpp @@ -24,9 +24,16 @@ #include "PreCompiled.h" #include "PyExport.h" #include "Exception.h" +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_1_3_38 { #define SWIG_PYTHON_NO_BUILD_NONE #include "swigpyrun_1.3.38.h" #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif diff --git a/src/Base/swigpyrun_1.3.40.cpp b/src/Base/swigpyrun_1.3.40.cpp index 88564ec955..ef7e58b85c 100644 --- a/src/Base/swigpyrun_1.3.40.cpp +++ b/src/Base/swigpyrun_1.3.40.cpp @@ -24,9 +24,16 @@ #include "PreCompiled.h" #include "PyExport.h" #include "Exception.h" +#if defined(__clang__) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +#endif namespace Swig_1_3_40 { #define SWIG_PYTHON_NO_BUILD_NONE #include "swigpyrun_1.3.40.h" #include "swigpyrun.inl" } +#if defined(__clang__) +# pragma clang diagnostic pop +#endif