aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libnvpair
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-02-16 16:10:57 +0100
committerBrian Behlendorf <[email protected]>2022-02-18 09:34:43 -0800
commitd8552689d1bb49dfff93f3970a0250938ba7dc3d (patch)
tree0f14048429051894d955480466ab82691f415d1f /lib/libnvpair
parent4e1f1035d033d43acc39bafd6bfd45493b7e00f4 (diff)
libnvpair: json: suppress wchar_t >=0 warnings
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/libnvpair')
-rw-r--r--lib/libnvpair/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libnvpair/Makefile.am b/lib/libnvpair/Makefile.am
index 7b9ebebe7..9a71a2ea6 100644
--- a/lib/libnvpair/Makefile.am
+++ b/lib/libnvpair/Makefile.am
@@ -9,6 +9,10 @@ VPATH = \
AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS)
AM_CFLAGS += -fvisibility=hidden
+# wchar_t is undefined-signedness, but we compare to >=0; this warns with unsigned wchar_t
+libnvpair_json.$(OBJEXT): CFLAGS += -Wno-type-limits
+libnvpair_json.l$(OBJEXT): CFLAGS += -Wno-type-limits
+
lib_LTLIBRARIES = libnvpair.la
include $(top_srcdir)/config/Abigail.am