From 3744b73e3bf74a6013661cdb76c8c5ae326cb403 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Dec 2023 20:59:04 -0500 Subject: sim: warnings: enable -Wreturn-type Older versions of gcc support this warning flag. We're already clean. --- sim/m4/sim_ac_option_warnings.m4 | 1 + 1 file changed, 1 insertion(+) (limited to 'sim/m4') diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 555bdb0..1c2d091 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. -- cgit v1.1