diff options
author | Pierrick Bouvier <pierrick.bouvier@linaro.org> | 2024-08-14 15:41:31 -0700 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2024-08-15 16:33:56 +0200 |
commit | e4a4edc10ab6a621e1c18eb73fc3e6f5d3f7c2e1 (patch) | |
tree | bc536e669df199a27e614d34c66f90c87da15923 /target/s390x/tcg | |
parent | b0d6c037ea0a825192285f149af72a73a1baaa04 (diff) |
target/s390x: fix build warning (gcc-12 -fsanitize=thread)
Found on debian stable.
../target/s390x/tcg/translate.c: In function ‘get_mem_index’:
../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]
398 | }
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20240814224132.897098-4-pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'target/s390x/tcg')
-rw-r--r-- | target/s390x/tcg/translate.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index c81e035dea..bcfff40b25 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s) return MMU_HOME_IDX; default: g_assert_not_reached(); - break; } #endif } |