From 9f17cdda31504ee821112a88323306cc81ac93cf Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 6 Jan 2024 23:36:13 -0500 Subject: [PATCH] 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(+) diff --git a/sim/configure b/sim/configure index a839c3a4fb1..6d0cc769283 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 8a54e563bad..7a28ca621a0 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. -- 2.47.2