sim: igen: fix format-zero-length warnings
Fix warnings from calling printf functions with "" which normally is useless.
This commit is contained in:
parent
c6352113d2
commit
5048cb28f4
@ -67,7 +67,11 @@ print_gen_entry_path (const line_ref *line,
|
|||||||
if (table->top->model != NULL)
|
if (table->top->model != NULL)
|
||||||
print (line, "%s", table->top->model->name);
|
print (line, "%s", table->top->model->name);
|
||||||
else
|
else
|
||||||
print (line, "");
|
{
|
||||||
|
/* We don't want to output things, but we want the side-effects they
|
||||||
|
might have (e.g. checking line != NULL). */
|
||||||
|
print (line, "%s", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1242,7 +1246,7 @@ gen_entry_expand_insns (gen_entry *table)
|
|||||||
print_gen_entry_insns (table, warning,
|
print_gen_entry_insns (table, warning,
|
||||||
"was not uniquely decoded",
|
"was not uniquely decoded",
|
||||||
"decodes to the same entry");
|
"decodes to the same entry");
|
||||||
error (NULL, "");
|
error (NULL, "unrecoverable\n");
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1385,7 +1389,7 @@ gen_entry_expand_insns (gen_entry *table)
|
|||||||
warning (NULL,
|
warning (NULL,
|
||||||
": Applying rule just copied all instructions\n");
|
": Applying rule just copied all instructions\n");
|
||||||
print_gen_entry_insns (entry, warning, "Copied", NULL);
|
print_gen_entry_insns (entry, warning, "Copied", NULL);
|
||||||
error (NULL, "");
|
error (NULL, "unrecoverable\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user