Use SWIGUNUSED attribute and fix warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6982 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-02-22 19:54:20 +00:00
commit 86c306dcc2
2 changed files with 2 additions and 8 deletions

View file

@ -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
*/

View file

@ -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 */