From d8552689d1bb49dfff93f3970a0250938ba7dc3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Feb 2022 16:10:57 +0100 Subject: [PATCH] libnvpair: json: suppress wchar_t >=0 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Alejandro Colomar Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #13110 --- lib/libnvpair/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) 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