diff options
author | наб <[email protected]> | 2022-02-16 16:06:08 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-02-18 09:34:25 -0800 |
commit | 72154bd6c9b352fe9f2d9a48c4d45211edd56823 (patch) | |
tree | 03546ccb20cf3ea8819ba4364192a4d20939b9f1 /lib | |
parent | 0ea6510aa006dc88f91fa5f666bfe8943eda4a24 (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.am | 2 | ||||
-rw-r--r-- | lib/libzfs/Makefile.am | 1 | ||||
-rw-r--r-- | lib/libzpool/Makefile.am | 3 | ||||
-rw-r--r-- | lib/libzutil/Makefile.am | 2 |
4 files changed, 2 insertions, 6 deletions
diff --git a/lib/libtpool/Makefile.am b/lib/libtpool/Makefile.am index 40fd137b4..638d427bd 100644 --- a/lib/libtpool/Makefile.am +++ b/lib/libtpool/Makefile.am @@ -1,6 +1,8 @@ include $(top_srcdir)/config/Rules.am AM_CFLAGS += -fvisibility=hidden +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118 +AM_CFLAGS += $(NO_CLOBBERED) noinst_LTLIBRARIES = libtpool.la diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am index e23f7c162..0827d52a4 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) AM_CFLAGS += -fvisibility=hidden diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index e49577ec4..e60a906a5 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 b16325061..4f2dbc62b 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) AM_CFLAGS += -fvisibility=hidden |