From: <ma...@go...> - 2007-12-07 01:15:59
|
> > With the "new" gcc, the generated wrap code for Lua causes the > following > warning when compiling: > > gtkl_wrap.cxx:5907: warning: deprecated conversion from string constant > to ?char*? > > Line 5907: static char *swig_MenuBar_base_names[] = {"Container > *",0}; > Hello Lucas, I don't have a copy of gcc4.2 to hand, can you check a few matters for me. 1. try compiling a binding for either python, perl or tcl, see if they give the same warnings? 2. edit the wrapper directly & find out which bit causes the warning. Do these remove the warnings? static char *swig_MenuBar_base_names[] = {"Container *",(char*)0}; static char *swig_MenuBar_base_names[] = {(char*)"Container *",0}; My guess is that gcc is getting more fussy, but I'm not sure which bit. Let me know and I can change the code to fix this. Regards, Mark |