diff --git a/Examples/test-suite/overload_extend.i b/Examples/test-suite/overload_extend.i index c32a07f57..acabdd5e8 100644 --- a/Examples/test-suite/overload_extend.i +++ b/Examples/test-suite/overload_extend.i @@ -8,11 +8,12 @@ %typemap(default) double y "$1=1000;"; #endif -#ifdef SWIGLUA // lua only has one numeric type, so some overloads shadow each other creating warnings -%warnfilter(SWIGWARN_LANG_OVERLOAD_SHADOW) test; -#endif - +#ifdef SWIGLUA +// lua only has one numeric type, so some overloads shadow each other creating warnings +%warnfilter(SWIGWARN_PARSE_REDEFINED, SWIGWARN_LANG_OVERLOAD_SHADOW) Foo::test; +#else %warnfilter(SWIGWARN_PARSE_REDEFINED) Foo::test; +#endif