[binutils-gdb] sim: warnings: enable -Wreturn-type

Michael Frysinger vapier@sourceware.org
Fri Dec 22 02:06:14 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3744b73e3bf74a6013661cdb76c8c5ae326cb403

commit 3744b73e3bf74a6013661cdb76c8c5ae326cb403
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Thu Dec 21 20:59:04 2023 -0500

    sim: warnings: enable -Wreturn-type
    
    Older versions of gcc support this warning flag.  We're already clean.

Diff:
---
 sim/configure                    | 1 +
 sim/m4/sim_ac_option_warnings.m4 | 1 +
 2 files changed, 2 insertions(+)

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.


More information about the Gdb-cvs mailing list