gcc-2.96 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8696 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
af6a3c5df6
commit
72f6688a6b
2 changed files with 4 additions and 4 deletions
|
|
@ -1177,8 +1177,8 @@ int yylex(void) {
|
|||
if ((c == '<') && !start_template) {
|
||||
int fcount = 1;
|
||||
char c = nextchar();
|
||||
while (isspace(c)) {c = nextchar(); ++fcount;}
|
||||
if (isalpha(c)|| c == ':') {
|
||||
while (isspace((int)c)) {c = nextchar(); ++fcount;}
|
||||
if (isalpha((int)c)|| c == ':') {
|
||||
start_template = count;
|
||||
}
|
||||
retract(fcount);
|
||||
|
|
@ -1214,7 +1214,7 @@ int yylex(void) {
|
|||
int nlen = len - tlen;
|
||||
if (nlen) {
|
||||
String *ns = 0;
|
||||
while (isspace(end[--nlen]));
|
||||
while (isspace((int)end[--nlen]));
|
||||
ns = NewStringWithSize(s, nlen + 1);
|
||||
retract(count - start_template);
|
||||
Delete(s);
|
||||
|
|
|
|||
|
|
@ -840,7 +840,7 @@ expand_macro(String *name, List *args)
|
|||
a = strstr(s,name);
|
||||
while (a) {
|
||||
char ca = a[namelen+1];
|
||||
if (!isidchar(ca)) {
|
||||
if (!isidchar((int)ca)) {
|
||||
/* Matched the entire vararg name, not just a prefix */
|
||||
t = a-1;
|
||||
if (*t == '\002') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue