i386: warning: format ‘%u’ expects argument of type ‘unsigned int’,
but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
ia64: warning: ignoring return value of ‘fgets’
* i386-gen.c (process_i386_opcodes): Correct format string.
* ia64-gen.c (load_insn_classes, load_depfile): Don't ignore
fgets return value.
fprintf (fp, "#define MN_%s ", str);
free (str);
str = mkident (next);
- fprintf (fp, "(MN_%s + %u)\n", str, l1 - l);
+ fprintf (fp, "(MN_%s + %zu)\n", str, l1 - l);
}
else
{
fail (_("can't find ia64-ic.tbl for reading\n"));
/* Discard first line. */
- fgets (buf, sizeof(buf), fp);
+ if (fgets (buf, sizeof(buf), fp) == NULL)
+ return;
while (!feof (fp))
{
if (fp == NULL)
fail (_("can't find %s for reading\n"), filename);
- fgets (buf, sizeof(buf), fp);
+ if (fgets (buf, sizeof(buf), fp) == NULL)
+ return;
while (!feof (fp))
{
char *name, *tmp;