sim: warnings: enable -Wshift-negative-value
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Jan 2024 04:36:13 +0000 (23:36 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 9 Jan 2024 01:02:44 +0000 (20:02 -0500)
Now that all the relevant sources are fixed, enable the warning.

sim/configure
sim/m4/sim_ac_option_warnings.m4

index a839c3a..6d0cc76 100755 (executable)
@@ -16175,6 +16175,7 @@ build_warnings="$build_warnings
 -Wpointer-sign
 -Wreturn-mismatch
 -Wreturn-type
+-Wshift-negative-value
 -Wstrict-prototypes
 -Wno-enum-conversion
 "
index 8a54e56..7a28ca6 100644 (file)
@@ -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.