diff options
-rw-r--r-- | Examples/test-suite/li_std_auto_ptr.i | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Examples/test-suite/li_std_auto_ptr.i b/Examples/test-suite/li_std_auto_ptr.i index b58a1d79d..1dcb3e02e 100644 --- a/Examples/test-suite/li_std_auto_ptr.i +++ b/Examples/test-suite/li_std_auto_ptr.i @@ -1,5 +1,11 @@ %module li_std_auto_ptr +%{ +#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 9) +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" // auto_ptr deprecation +#endif +%} + #if defined(SWIGCSHARP) || defined(SWIGJAVA) || defined(SWIGPYTHON) %include "std_auto_ptr.i" |