T_STRING is now const char * instead of char *
Fixes Guile constant wrappers removing -Wwrite-strings g++ warning.
This commit is contained in:
parent
72afb74f47
commit
9c7d014389
2 changed files with 2 additions and 1 deletions
|
|
@ -131,6 +131,7 @@ SwigType *NewSwigType(int t) {
|
|||
break;
|
||||
case T_STRING: {
|
||||
SwigType *t = NewString("char");
|
||||
SwigType_add_qualifier(t, "const");
|
||||
SwigType_add_pointer(t);
|
||||
return t;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue