diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-22 17:49:16 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2013-12-22 17:49:16 +0000 |
commit | 6250c288b5b83b95807e063427fc8c00d739b00b (patch) | |
tree | 29f32fd651dc949f923a58a7ec92eb816ae76324 | |
parent | 32ad89668a69bbddd5a2672822d3fa291d537c5f (diff) | |
download | swig-6250c288b5b83b95807e063427fc8c00d739b00b.tar.gz |
Suppress gcc-4.9 auto_ptr deprecation in test
-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" |