aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-gen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-26 11:17:47 +0930
committerAlan Modra <amodra@gmail.com>2023-08-26 11:17:47 +0930
commitd2ac569f7b443aef7b2be2f0c80d8ab0d67b4292 (patch)
tree37c4dd7313103c5eee2335d607b94eef731fc66b /opcodes/i386-gen.c
parentb8a0c930580775e54bccdfdc77046db74331bad4 (diff)
downloadfsf-binutils-gdb-d2ac569f7b443aef7b2be2f0c80d8ab0d67b4292.zip
fsf-binutils-gdb-d2ac569f7b443aef7b2be2f0c80d8ab0d67b4292.tar.gz
fsf-binutils-gdb-d2ac569f7b443aef7b2be2f0c80d8ab0d67b4292.tar.bz2
opcodes i386 and ia64 gen file warnings
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.
Diffstat (limited to 'opcodes/i386-gen.c')
-rw-r--r--opcodes/i386-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c
index 30430a2..c46d6a5 100644
--- a/opcodes/i386-gen.c
+++ b/opcodes/i386-gen.c
@@ -1841,7 +1841,7 @@ process_i386_opcodes (FILE *table)
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
{