]> git.ipfire.org Git - thirdparty/qemu.git/commit
nanomips: fix warnings with GCC 14
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2024 14:10:40 +0000 (16:10 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2024 19:21:48 +0000 (21:21 +0200)
commit207a2baa16bc27ba5ac5f75893e7adab80df3476
treef78cd6833f3c5f2a21ad8b01d8d27be10ccd617f
parentd1ce2cc95b71f41860bdff6f81c333cec11eae80
nanomips: fix warnings with GCC 14

GCC 14 shows -Wshadow=local warnings if an enum conflicts with a local
variable (including a parameter).  To avoid this, move the problematic
enum and all of its dependencies after the hundreds of functions that
have a parameter named "instruction".

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
disas/nanomips.c