From a215c3e83445c230ced10bc5ed13874c3eaaa20f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Wed, 16 Feb 2022 16:23:57 +0100 Subject: [PATCH] libzpool: kernel: silence unrelated-function-pointer cast warning 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/libzpool/Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index e60a906a5c..3942ff3b6d 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -24,6 +24,11 @@ AM_CFLAGS += $(ZLIB_CFLAGS) AM_CFLAGS += -DLIB_ZPOOL_BUILD +# For the void (*)(void *) -> void *(*)(void *) cast in zk_thread_create() +# See https://github.com/openzfs/zfs/pull/13110#discussion_r808450136 +kernel.$(OBJEXT): CFLAGS += -Wno-cast-function-type +kernel.l$(OBJEXT): CFLAGS += -Wno-cast-function-type + lib_LTLIBRARIES = libzpool.la USER_C = \