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:
parent
8f09d00bb0
commit
7c9ece71ad
2 changed files with 7 additions and 7 deletions
|
|
@ -15,7 +15,7 @@ extern "C" {
|
||||||
|
|
||||||
#include "lua.h"
|
#include "lua.h"
|
||||||
#include "lauxlib.h"
|
#include "lauxlib.h"
|
||||||
#include <stdlib.h> /* for malloc */
|
#include <stdlib.h> /* for malloc */
|
||||||
#include <assert.h> /* for a few sanity tests */
|
#include <assert.h> /* for a few sanity tests */
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
@ -65,7 +65,7 @@ typedef struct swig_lua_class {
|
||||||
swig_lua_method *methods;
|
swig_lua_method *methods;
|
||||||
swig_lua_attribute *attributes;
|
swig_lua_attribute *attributes;
|
||||||
struct swig_lua_class **bases;
|
struct swig_lua_class **bases;
|
||||||
char **base_names;
|
const char **base_names;
|
||||||
} swig_lua_class;
|
} swig_lua_class;
|
||||||
|
|
||||||
/* this is the struct for wrappering all pointers in SwigLua
|
/* this is the struct for wrappering all pointers in SwigLua
|
||||||
|
|
@ -76,10 +76,10 @@ typedef struct {
|
||||||
void *ptr;
|
void *ptr;
|
||||||
} swig_lua_userdata;
|
} swig_lua_userdata;
|
||||||
|
|
||||||
/* this is the struct for wrappering arbitary packed binary data
|
/* this is the struct for wrapping arbitary packed binary data
|
||||||
(currently it is only used for member fn pointers)
|
(currently it is only used for member function pointers)
|
||||||
the data ordering is similar to swig_lua_userdata, but its currently not possible
|
the data ordering is similar to swig_lua_userdata, but it is currently not possible
|
||||||
to tell the two structres apart within Swig, other than by looking at the type
|
to tell the two structures apart within Swig, other than by looking at the type
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
swig_type_info *type;
|
swig_type_info *type;
|
||||||
|
|
|
||||||
|
|
@ -927,7 +927,7 @@ NEW LANGUAGE NOTE:END ************************************************/
|
||||||
|
|
||||||
Printv(f_wrappers, "static swig_lua_class *swig_", mangled_classname, "_bases[] = {", base_class, "0};\n", NIL);
|
Printv(f_wrappers, "static swig_lua_class *swig_", mangled_classname, "_bases[] = {", base_class, "0};\n", NIL);
|
||||||
Delete(base_class);
|
Delete(base_class);
|
||||||
Printv(f_wrappers, "static char *swig_", mangled_classname, "_base_names[] = {", base_class_names, "0};\n", NIL);
|
Printv(f_wrappers, "static const char *swig_", mangled_classname, "_base_names[] = {", base_class_names, "0};\n", NIL);
|
||||||
Delete(base_class_names);
|
Delete(base_class_names);
|
||||||
|
|
||||||
Printv(f_wrappers, "static swig_lua_class _wrap_class_", mangled_classname, " = { \"", class_name, "\", &SWIGTYPE", SwigType_manglestr(t), ",", NIL);
|
Printv(f_wrappers, "static swig_lua_class _wrap_class_", mangled_classname, " = { \"", class_name, "\", &SWIGTYPE", SwigType_manglestr(t), ",", NIL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue