From: Mike Frysinger Date: Fri, 22 Dec 2023 01:59:04 +0000 (-0500) Subject: sim: warnings: enable -Wreturn-type X-Git-Tag: binutils-2_42~433 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3744b73e3bf74a6013661cdb76c8c5ae326cb403;p=thirdparty%2Fbinutils-gdb.git sim: warnings: enable -Wreturn-type Older versions of gcc support this warning flag. We're already clean. --- diff --git a/sim/configure b/sim/configure index faa26e42ca9..d17905524c5 100755 --- a/sim/configure +++ b/sim/configure @@ -15846,6 +15846,7 @@ build_warnings="$build_warnings -Wold-style-definition -Wpointer-sign -Wreturn-mismatch +-Wreturn-type -Wstrict-prototypes -Wno-enum-conversion " diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 555bdb0a26a..1c2d0915230 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -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.