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:
Marcelo Matus 2005-11-29 02:04:28 +00:00
commit 560c90e744

View file

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