libzpool: kernel: silence unrelated-function-pointer cast warning

Reviewed-by: Alejandro Colomar <alx.manpages@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13110
This commit is contained in:
наб 2022-02-16 16:23:57 +01:00 committed by Brian Behlendorf
parent d8552689d1
commit a215c3e834
1 changed files with 5 additions and 0 deletions

View File

@ -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 = \