const char * correctness fixes (in C code)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c7df90e675
commit
dac89e16d4
7 changed files with 10 additions and 10 deletions
|
|
@ -1637,7 +1637,7 @@ String *Preprocessor_parse(String *s) {
|
|||
if (Len(sval) > 0) {
|
||||
val = Preprocessor_expr(sval, &e);
|
||||
if (e) {
|
||||
char *msg = Preprocessor_expr_error();
|
||||
const char *msg = Preprocessor_expr_error();
|
||||
Seek(value, 0, SEEK_SET);
|
||||
Swig_warning(WARN_PP_EVALUATION, Getfile(value), Getline(value), "Could not evaluate expression '%s'\n", value);
|
||||
if (msg)
|
||||
|
|
@ -1671,7 +1671,7 @@ String *Preprocessor_parse(String *s) {
|
|||
if (Len(sval) > 0) {
|
||||
val = Preprocessor_expr(sval, &e);
|
||||
if (e) {
|
||||
char *msg = Preprocessor_expr_error();
|
||||
const char *msg = Preprocessor_expr_error();
|
||||
Seek(value, 0, SEEK_SET);
|
||||
Swig_warning(WARN_PP_EVALUATION, Getfile(value), Getline(value), "Could not evaluate expression '%s'\n", value);
|
||||
if (msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue