From 86c306dcc2e7f8e71c083c56fb72380ebdcc855e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 22 Feb 2005 19:54:20 +0000 Subject: [PATCH] Use SWIGUNUSED attribute and fix warnings git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6982 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/python/pyapi.swg | 9 ++------- Lib/python/pyinit.swg | 1 - 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Lib/python/pyapi.swg b/Lib/python/pyapi.swg index 1ed88ccb9..bb2655cd9 100644 --- a/Lib/python/pyapi.swg +++ b/Lib/python/pyapi.swg @@ -11,18 +11,13 @@ extern "C" { * ----------------------------------------------------------------------------- */ #ifndef SWIGINTERN -#define SWIGINTERN static +# define SWIGINTERN static SWIGUNUSED #endif #ifndef SWIGINTERNSHORT -#ifdef __cplusplus -#define SWIGINTERNSHORT static inline -#else /* C case */ -#define SWIGINTERNSHORT static -#endif /* __cplusplus */ +# define SWIGINTERNSHORT SWIGINTERN SWIGINLINE #endif - /* Exception handling in wrappers */ diff --git a/Lib/python/pyinit.swg b/Lib/python/pyinit.swg index 9bab5ac09..34fc4c597 100644 --- a/Lib/python/pyinit.swg +++ b/Lib/python/pyinit.swg @@ -279,7 +279,6 @@ extern "C" SWIGEXPORT(void) SWIG_init(void) { static PyObject *SWIG_globals = 0; PyObject *m, *d; - int i; if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); /* Fix SwigMethods to carry the callback ptrs when needed */