Remove some vc++ /W4 warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10540 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-06-21 15:23:02 +00:00
commit 49675199f4
20 changed files with 146 additions and 152 deletions

View file

@ -331,7 +331,9 @@ static void add_symbols(Node *n) {
Delete(prefix);
}
if (0 && !Getattr(n,"parentNode") && class_level) set_parentNode(n,class_decl[class_level - 1]);
/*
if (!Getattr(n,"parentNode") && class_level) set_parentNode(n,class_decl[class_level - 1]);
*/
Setattr(n,"ismember","1");
}
}
@ -4109,10 +4111,11 @@ cpp_destructor_decl : NOT idtemplate LPAREN parms RPAREN cpp_end {
/* Check for template names. If the class is a template
and the constructor is missing the template part, we
add it */
if (Classprefix && (c = strchr(Char(Classprefix),'<'))) {
if (!Strchr($3,'<')) {
$3 = NewStringf("%s%s",$3,c);
}
if (Classprefix) {
c = strchr(Char(Classprefix),'<');
if (c && !Strchr($3,'<')) {
$3 = NewStringf("%s%s",$3,c);
}
}
Setattr($$,"storage","virtual");
name = NewStringf("%s",$3);
@ -4428,12 +4431,8 @@ parms : rawparms {
;
rawparms : parm ptail {
if (1) {
set_nextSibling($1,$2);
$$ = $1;
} else {
$$ = $2;
}
set_nextSibling($1,$2);
$$ = $1;
}
| empty { $$ = 0; }
;
@ -4486,12 +4485,8 @@ valparms : rawvalparms {
;
rawvalparms : valparm valptail {
if (1) {
set_nextSibling($1,$2);
$$ = $1;
} else {
$$ = $2;
}
set_nextSibling($1,$2);
$$ = $1;
}
| empty { $$ = 0; }
;

View file

@ -281,13 +281,13 @@ int Swig_cparse_template_expand(Node *n, String *rname, ParmList *tparms, Symtab
Delete(ptargs);
}
if (0) {
/*
Parm *p = tparms;
while (p) {
Printf(stdout, "tparm: '%s' '%s' '%s'\n", Getattr(p, "name"), Getattr(p, "type"), Getattr(p, "value"));
p = nextSibling(p);
}
}
*/
/* Printf(stdout,"targs = '%s'\n", templateargs);
Printf(stdout,"rname = '%s'\n", rname);