summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-16 16:06:08 +0100
committerBrian Behlendorf <[email protected]>2022-07-27 13:38:56 -0700
commit37430e821176e15e9aa524edf31b1646bf0ba200 (patch)
treea1e41849c622140c463a08c5341a7cf8a98f7dc8 /lib
parent4b0977027bae95ab916002e372f339f9ad3902a3 (diff)
libtpool: -Wno-clobbered
Also remove -Wno-unused-but-set-variable Upstream-bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118 Reviewed-by: Alejandro Colomar <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13110
Diffstat (limited to 'lib')
-rw-r--r--lib/libtpool/Makefile.am3
-rw-r--r--lib/libzfs/Makefile.am1
-rw-r--r--lib/libzpool/Makefile.am3
-rw-r--r--lib/libzutil/Makefile.am2
4 files changed, 3 insertions, 6 deletions
diff --git a/lib/libtpool/Makefile.am b/lib/libtpool/Makefile.am
index aa8bde32f..3aff56f05 100644
--- a/lib/libtpool/Makefile.am
+++ b/lib/libtpool/Makefile.am
@@ -1,5 +1,8 @@
include $(top_srcdir)/config/Rules.am
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118
+AM_CFLAGS += $(NO_CLOBBERED)
+
noinst_LTLIBRARIES = libtpool.la
USER_C = \
diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am
index 31267fd9a..7acaee418 100644
--- a/lib/libzfs/Makefile.am
+++ b/lib/libzfs/Makefile.am
@@ -6,7 +6,6 @@ VPATH = \
$(top_srcdir)/lib/libzfs
# Suppress unused but set variable warnings often due to ASSERTs
-AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
AM_CFLAGS += $(LIBCRYPTO_CFLAGS) $(ZLIB_CFLAGS)
pkgconfig_DATA = libzfs.pc
diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am
index c9a55591e..db7c37631 100644
--- a/lib/libzpool/Makefile.am
+++ b/lib/libzpool/Makefile.am
@@ -17,9 +17,6 @@ endif
# Unconditionally enable debugging for libzpool
AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG
-# Suppress unused but set variable warnings often due to ASSERTs
-AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
-
# Includes kernel code generate warnings for large stack frames
AM_CFLAGS += $(FRAME_LARGER_THAN)
diff --git a/lib/libzutil/Makefile.am b/lib/libzutil/Makefile.am
index 2f0357e9f..6351e0ebf 100644
--- a/lib/libzutil/Makefile.am
+++ b/lib/libzutil/Makefile.am
@@ -1,7 +1,5 @@
include $(top_srcdir)/config/Rules.am
-# Suppress unused but set variable warnings often due to ASSERTs
-AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
DEFAULT_INCLUDES += -I$(srcdir)