fix compiler warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a28abe7161
commit
560c90e744
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;
|
||||
int c, line;
|
||||
int varargs = 0;
|
||||
|
||||
String *str = NewString(_str);
|
||||
String_or_char *str = (String_or_char *)_str;
|
||||
|
||||
assert(cpp);
|
||||
assert(str);
|
||||
|
||||
/* First make sure that string is actually a string */
|
||||
if (DohCheck(str)) {
|
||||
s = NewString(str);
|
||||
s = Copy(str);
|
||||
copy_location(str,s);
|
||||
str = s;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue