Fix gcc-4.2 warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-12-08 00:22:03 +00:00
commit 7c9ece71ad
2 changed files with 7 additions and 7 deletions

View file

@ -15,7 +15,7 @@ extern "C" {
#include "lua.h"
#include "lauxlib.h"
#include <stdlib.h> /* for malloc */
#include <stdlib.h> /* for malloc */
#include <assert.h> /* for a few sanity tests */
/* -----------------------------------------------------------------------------
@ -65,7 +65,7 @@ typedef struct swig_lua_class {
swig_lua_method *methods;
swig_lua_attribute *attributes;
struct swig_lua_class **bases;
char **base_names;
const char **base_names;
} swig_lua_class;
/* this is the struct for wrappering all pointers in SwigLua
@ -76,10 +76,10 @@ typedef struct {
void *ptr;
} swig_lua_userdata;
/* this is the struct for wrappering arbitary packed binary data
(currently it is only used for member fn pointers)
the data ordering is similar to swig_lua_userdata, but its currently not possible
to tell the two structres apart within Swig, other than by looking at the type
/* this is the struct for wrapping arbitary packed binary data
(currently it is only used for member function pointers)
the data ordering is similar to swig_lua_userdata, but it is currently not possible
to tell the two structures apart within Swig, other than by looking at the type
*/
typedef struct {
swig_type_info *type;