aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2024-01-06 23:36:13 -0500
committerMike Frysinger <vapier@gentoo.org>2024-01-08 20:02:44 -0500
commit9f17cdda31504ee821112a88323306cc81ac93cf (patch)
treec71ef2393a52b033ef1b24ab039da7d0dede5967
parent4223df94e038c653eab6cb39928184c3fcb2575f (diff)
downloadgdb-9f17cdda31504ee821112a88323306cc81ac93cf.zip
gdb-9f17cdda31504ee821112a88323306cc81ac93cf.tar.gz
gdb-9f17cdda31504ee821112a88323306cc81ac93cf.tar.bz2
sim: warnings: enable -Wshift-negative-value
Now that all the relevant sources are fixed, enable the warning.
-rwxr-xr-xsim/configure1
-rw-r--r--sim/m4/sim_ac_option_warnings.m41
2 files changed, 2 insertions, 0 deletions
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.