[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:
Zackery Spytz 2019-01-24 05:32:35 -07:00
commit 4ca7cd7b27
7 changed files with 20 additions and 27 deletions

View file

@ -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;