Files
binutils-gdb/opcodes
Tom de Vries 6206516653 opcodes: fix Werror=format build breaker in opcodes/riscv-dis.c
I build gdb on arm-linux and ran into:
...
  CC       riscv-dis.lo
opcodes/riscv-dis.c: In function ‘print_insn_args’:
opcodes/riscv-dis.c:743:29: error: format ‘%lu’ expects argument of type \
  ‘long unsigned int’, but argument 4 has type ‘insn_t’ \
  {aka ‘long long unsigned int’} [-Werror=format=]
  743 |                          "%lu", EXTRACT_ZCMT_INDEX (l));
      |                           ~~^
      |                             |
      |                             long unsigned int
      |                           %llu
...

Fix this by printing the insn_t value, which is a uint64_t, using PRIu64.

Tested by finishing the build.
2024-11-24 09:21:28 +01:00
..
2023-11-15 12:53:04 +00:00
2024-07-20 12:43:19 +01:00
2023-11-15 12:53:04 +00:00
2024-07-20 13:16:33 +01:00
2024-06-20 21:15:27 +09:30
2024-06-18 10:52:40 +08:00
2024-11-19 10:45:56 +08:00
2024-11-19 10:45:56 +08:00
2024-11-19 10:45:56 +08:00
2024-11-19 10:45:56 +08:00
2024-11-19 10:45:56 +08:00
2024-08-30 11:23:16 +02:00
2024-11-19 10:45:56 +08:00
2024-03-13 18:23:26 +00:00
2024-06-20 21:15:27 +09:30
2024-04-19 10:00:57 +09:30
2024-10-10 12:09:40 +02:00