diff options
author | Mark Wielaard <mark@klomp.org> | 2024-01-21 23:47:35 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2024-01-22 12:10:23 +0100 |
commit | c2625a463ffd8c0d10b85b65e80ab8b67b28e441 (patch) | |
tree | 55020a52c966b97e4f98a9272c0f5e3e9de66439 /sim/m32c/gdb-if.c | |
parent | 865e469c6024b3aa5266092597bf7d00166f5049 (diff) | |
download | binutils-c2625a463ffd8c0d10b85b65e80ab8b67b28e441.zip binutils-c2625a463ffd8c0d10b85b65e80ab8b67b28e441.tar.gz binutils-c2625a463ffd8c0d10b85b65e80ab8b67b28e441.tar.bz2 |
sim: Fix some -Werror=shadow=compatible-local issues in aarch64/simulator.c
With GCC 14 -Werror=shadow=compatible-local flags the reuse of single
capital letters used in aarch64/cpustate.h enums
88 | expand_logical_immediate (uint32_t S, uint32_t R, uint32_t N)
| ~~~~~~~~~^
In file included from ../../binutils-gdb/sim/aarch64/aarch64-sim.h:27,
from ../../binutils-gdb/sim/aarch64/simulator.c:33:
217 | N = 1 << N_IDX
| ^
sim/aarch64/simulator.c: In function ‘expand_logical_immediate’:
sim/aarch64/simulator.c:88:60: error: declaration of ‘N’ shadows a previous local [-Werror=shadow=compatible-local]
sim/aarch64/cpustate.h:217:3: note: shadowed declaration is here
Diffstat (limited to 'sim/m32c/gdb-if.c')
0 files changed, 0 insertions, 0 deletions