[Tcl] Fix several ocurrences of "warning: deprecated conversion
from string constant to 'char*'" from GCC 4.2 in generated C/C++ code. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9993 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1b1334815c
commit
10c6e1064d
3 changed files with 7 additions and 2 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
Version 1.3.32 (in progress)
|
Version 1.3.32 (in progress)
|
||||||
============================
|
============================
|
||||||
|
|
||||||
|
10/16/2007: olly
|
||||||
|
[Tcl] Fix several ocurrences of "warning: deprecated conversion
|
||||||
|
from string constant to 'char*'" from GCC 4.2 in generated C/C++
|
||||||
|
code.
|
||||||
|
|
||||||
10/16/2007: olly
|
10/16/2007: olly
|
||||||
[PHP] Fix many occurrences of "warning: deprecated conversion from
|
[PHP] Fix many occurrences of "warning: deprecated conversion from
|
||||||
string constant to 'char*'" from GCC 4.2 in generated C/C++ code.
|
string constant to 'char*'" from GCC 4.2 in generated C/C++ code.
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ typedef struct swig_class {
|
||||||
swig_method *methods;
|
swig_method *methods;
|
||||||
swig_attribute *attributes;
|
swig_attribute *attributes;
|
||||||
struct swig_class **bases;
|
struct swig_class **bases;
|
||||||
char **base_names;
|
const char **base_names;
|
||||||
swig_module_info *module;
|
swig_module_info *module;
|
||||||
} swig_class;
|
} swig_class;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -929,7 +929,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
Printv(f_wrappers, "static swig_class *swig_", mangled_classname, "_bases[] = {", base_class, "0};\n", NIL);
|
Printv(f_wrappers, "static swig_class *swig_", mangled_classname, "_bases[] = {", base_class, "0};\n", NIL);
|
||||||
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);
|
Delete(base_class);
|
||||||
Delete(base_class_names);
|
Delete(base_class_names);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue