[OCaml] Eliminate use of -Wno-write-strings
Don't convert string literals to char * in the strings_test example. In constantWrapper(), use SwigType_str() instead of SwigType_lstr() in order to keep const qualifiers.
This commit is contained in:
parent
7118e4ef1e
commit
4ca7cd7b27
7 changed files with 20 additions and 27 deletions
|
|
@ -920,7 +920,7 @@ public:
|
|||
// See if there's a typemap
|
||||
|
||||
// Create variable and assign it a value
|
||||
Printf(f_header, "static %s = %s;\n", SwigType_lstr(type, name), value);
|
||||
Printf(f_header, "static %s = %s;\n", SwigType_str(type, name), value);
|
||||
SetFlag(n, "feature:immutable");
|
||||
variableWrapper(n);
|
||||
return SWIG_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue