From: <wsf...@us...> - 2009-02-07 23:44:16
|
Revision: 11117 http://swig.svn.sourceforge.net/swig/?rev=11117&view=rev Author: wsfulton Date: 2009-02-07 23:44:12 +0000 (Sat, 07 Feb 2009) Log Message: ----------- remove gcc warning when using -Wunreachable-code Modified Paths: -------------- trunk/Lib/python/pyrun.swg Modified: trunk/Lib/python/pyrun.swg =================================================================== --- trunk/Lib/python/pyrun.swg 2009-02-07 20:25:54 UTC (rev 11116) +++ trunk/Lib/python/pyrun.swg 2009-02-07 23:44:12 UTC (rev 11117) @@ -1550,10 +1550,12 @@ void *result; if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { PyErr_Clear(); - if (flags & SWIG_POINTER_EXCEPTION) { +#if SWIG_POINTER_EXCEPTION + if (flags) { SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); SWIG_Python_ArgFail(argnum); } +#endif } return result; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |