diff options
author | Olly Betts <olly@survex.com> | 2015-03-16 18:12:38 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2015-03-16 18:12:38 +1300 |
commit | ab677205d87aa39a1506a543e595cd848382c6b6 (patch) | |
tree | b1b1aa758c8f3a19ad5e1cf1a039b3380fb9275b /Lib/swiglabels.swg | |
parent | 0193c98608ff30ef94dd797977128a89f4c2d349 (diff) | |
download | swig-ab677205d87aa39a1506a543e595cd848382c6b6.tar.gz |
Suppress warning from Intel compiler
Fixes issue #192, reported by kesmit13
Diffstat (limited to 'Lib/swiglabels.swg')
-rw-r--r-- | Lib/swiglabels.swg | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/swiglabels.swg b/Lib/swiglabels.swg index baa21a756..e73e63a57 100644 --- a/Lib/swiglabels.swg +++ b/Lib/swiglabels.swg @@ -110,3 +110,12 @@ #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES) # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 #endif + +/* Intel's compiler complains if a variable which was never initialised is + * cast to void, which is a common idiom which we use to indicate that we + * are aware a variable isn't used. So we just silence that warning. + * See: https://github.com/swig/swig/issues/192 for more discussion. + */ +#ifdef __INTEL_COMPILER +# pragma warning disable 592 +#endif |