[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
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue