shut up "unused param" warnings by only naming the register param if the icode uses a RegisterList operand.

git-svn-id: svn://10.0.0.236/trunk@75134 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rginda%netscape.com
2000-07-29 02:00:12 +00:00
parent 2119da1ef5
commit c69750c8cd
4 changed files with 80 additions and 78 deletions

View File

@@ -421,9 +421,10 @@ sub collect {
my $printops_body = &get_printops_body(@types);
my $printops_decl = "virtual Formatter& printOperands(Formatter& f, ";
$printops_decl .= ($printops_body ne "" ?
$printops_decl .= ($dec_list =~ /RegisterList/) ?
"const JSValues& registers" :
"const JSValues& /*registers*/");
"const JSValues& /*registers*/";
$printops_decl .= ") {\n";
$class_decs .= ($init_tab . $tab .