From 9f17cdda31504ee821112a88323306cc81ac93cf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Jan 2024 23:36:13 -0500 Subject: sim: warnings: enable -Wshift-negative-value Now that all the relevant sources are fixed, enable the warning. --- sim/configure | 1 + sim/m4/sim_ac_option_warnings.m4 | 1 + 2 files changed, 2 insertions(+) (limited to 'sim') diff --git a/sim/configure b/sim/configure index a839c3a..6d0cc76 100755 --- a/sim/configure +++ b/sim/configure @@ -16175,6 +16175,7 @@ build_warnings="$build_warnings -Wpointer-sign -Wreturn-mismatch -Wreturn-type +-Wshift-negative-value -Wstrict-prototypes -Wno-enum-conversion " diff --git a/sim/m4/sim_ac_option_warnings.m4 b/sim/m4/sim_ac_option_warnings.m4 index 8a54e56..7a28ca6 100644 --- a/sim/m4/sim_ac_option_warnings.m4 +++ b/sim/m4/sim_ac_option_warnings.m4 @@ -70,6 +70,7 @@ build_warnings="$build_warnings -Wpointer-sign -Wreturn-mismatch -Wreturn-type +-Wshift-negative-value -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