[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
|
|
@ -381,7 +381,7 @@ extern "C" {
|
|||
caml_copy_string(name)));
|
||||
}
|
||||
|
||||
SWIGINTERN long caml_long_val_full( CAML_VALUE v, char *name ) {
|
||||
SWIGINTERN long caml_long_val_full( CAML_VALUE v, const char *name ) {
|
||||
CAMLparam1(v);
|
||||
if( !Is_block(v) ) return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue