diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-07-30 21:23:57 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-07-30 21:23:57 +0100 |
commit | 56ab717ff35579e8468d7617162c1b7f46fd2b68 (patch) | |
tree | 6eed130f4c1d5872180375a85b7868b4fc2d75d7 /Examples/test-suite/nested_structs.i | |
parent | 0177937f7e4d45cbb677a9423b638d732fe65435 (diff) | |
download | swig-56ab717ff35579e8468d7617162c1b7f46fd2b68.tar.gz |
Test case warning fixes for nodejsstl-vector-ptrs
nodejs 4.2.1 on Ubuntu Xenial Xerus
Diffstat (limited to 'Examples/test-suite/nested_structs.i')
-rw-r--r-- | Examples/test-suite/nested_structs.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/nested_structs.i b/Examples/test-suite/nested_structs.i index f4f7a275a..c70924958 100644 --- a/Examples/test-suite/nested_structs.i +++ b/Examples/test-suite/nested_structs.i @@ -1,5 +1,17 @@ %module nested_structs +#if defined(SWIG_JAVASCRIPT_V8) + +%inline %{ +#if __GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) +/* for nested C class wrappers compiled as C++ code */ +/* dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] */ +#pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif +%} + +#endif + // bug #491476 %inline %{ struct Outer { |