]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
sim: warnings: enable -Wreturn-type
authorMike Frysinger <vapier@gentoo.org>
Fri, 22 Dec 2023 01:59:04 +0000 (20:59 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 22 Dec 2023 01:59:16 +0000 (20:59 -0500)
Older versions of gcc support this warning flag.  We're already clean.

sim/configure
sim/m4/sim_ac_option_warnings.m4

index faa26e42ca94a55aec378db4143205d31df7cd69..d17905524c5dee7c73e99d53ec230b8588f7af51 100755 (executable)
@@ -15846,6 +15846,7 @@ build_warnings="$build_warnings
 -Wold-style-definition
 -Wpointer-sign
 -Wreturn-mismatch
+-Wreturn-type
 -Wstrict-prototypes
 -Wno-enum-conversion
 "
index 555bdb0a26ae42c0744a3f3c1d2611e7b9c8e365..1c2d091523064f0d9d684d657e4de878359e8f54 100644 (file)
@@ -69,6 +69,7 @@ build_warnings="$build_warnings
 -Wold-style-definition
 -Wpointer-sign
 -Wreturn-mismatch
+-Wreturn-type
 -Wstrict-prototypes
 dnl The cgen virtual insn logic involves enum conversions.
 dnl Disable until we can figure out how to make this work.