[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:
Olly Betts 2007-10-16 22:12:44 +00:00
commit 10c6e1064d
3 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,11 @@
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
[PHP] Fix many occurrences of "warning: deprecated conversion from
string constant to 'char*'" from GCC 4.2 in generated C/C++ code.

View file

@ -47,7 +47,7 @@ typedef struct swig_class {
swig_method *methods;
swig_attribute *attributes;
struct swig_class **bases;
char **base_names;
const char **base_names;
swig_module_info *module;
} swig_class;

View file

@ -929,7 +929,7 @@ public:
};
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_names);