fix compiler warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
597f6f6e28
commit
a168aad6aa
1 changed files with 2 additions and 3 deletions
|
|
@ -244,15 +244,14 @@ Hash *Preprocessor_define(const String_or_char *_str, int swigmacro)
|
||||||
List *arglist = 0;
|
List *arglist = 0;
|
||||||
int c, line;
|
int c, line;
|
||||||
int varargs = 0;
|
int varargs = 0;
|
||||||
|
String_or_char *str = (String_or_char *)_str;
|
||||||
String *str = NewString(_str);
|
|
||||||
|
|
||||||
assert(cpp);
|
assert(cpp);
|
||||||
assert(str);
|
assert(str);
|
||||||
|
|
||||||
/* First make sure that string is actually a string */
|
/* First make sure that string is actually a string */
|
||||||
if (DohCheck(str)) {
|
if (DohCheck(str)) {
|
||||||
s = NewString(str);
|
s = Copy(str);
|
||||||
copy_location(str,s);
|
copy_location(str,s);
|
||||||
str = s;
|
str = s;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue