From e019b40f7dd67c7b44ff0eb1657fb73ffa914abc Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 19 Feb 2011 12:39:44 +0000 Subject: [PATCH] Fix Lua warning suppression for overload_extend testcase git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12478 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/test-suite/overload_extend.i | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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