aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-11-01 11:07:33 +0000
committerAndrew Burgess <aburgess@redhat.com>2022-11-01 11:07:33 +0000
commit4575eafb45758dad60baed46de3a772c65f888d3 (patch)
treec846d1d78915378cfe49769a03bcb1644ca359cd /sim
parent2df82cd4b459fbc32120e0ad1ce19e26349506fe (diff)
downloadbinutils-4575eafb45758dad60baed46de3a772c65f888d3.zip
binutils-4575eafb45758dad60baed46de3a772c65f888d3.tar.gz
binutils-4575eafb45758dad60baed46de3a772c65f888d3.tar.bz2
opcodes/arm: don't pass non-string literal to printf like function
The earlier commit: commit 6576bffe6cbbb53c5756b2fccd2593ba69b74cdf Date: Thu Jul 7 13:43:45 2022 +0100 opcodes/arm: add disassembler styling for arm introduced two places where a register name was passed as the format string to the disassembler's fprintf_styled_func callback. This will cause a warning from some compilers, like this: ../../binutils-gdb/opcodes/arm-dis.c: In function ‘print_mve_vld_str_addr’: ../../binutils-gdb/opcodes/arm-dis.c:6005:3: error: format not a string literal and no format arguments [-Werror=format-security] 6005 | func (stream, dis_style_register, arm_regnames[gpr]); | ^~~~ This commit fixes these by using "%s" as the format string.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions