fix several compiler warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-23 22:58:49 +00:00
commit b670533614
8 changed files with 46 additions and 22 deletions

View file

@ -807,9 +807,9 @@ const char *skip_delim(char pb, char pe, const char *ce)
}
#if defined(USE_RXSPENCER)
String *Swig_string_rxspencer(String *s) {
String *res = 0;
#if defined(USE_RXSPENCER)
if (Len(s)) {
const char *cs = Char(s);
const char *cb;
@ -868,10 +868,15 @@ String *Swig_string_rxspencer(String *s) {
}
}
}
#endif
if (!res) res = NewStringEmpty();
return res;
}
#else
String *Swig_string_rxspencer(String *s) {
(void)s;
return NewStringEmpty();
}
#endif
/* -----------------------------------------------------------------------------