From da5f5ec508a817ba6750bfdb8f245675662b9701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 12 Dec 2021 15:20:26 +0100 Subject: [PATCH] libspl: kmem.h: mark unused kmem_*() macro arguments used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12844 --- lib/libspl/include/sys/kmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libspl/include/sys/kmem.h b/lib/libspl/include/sys/kmem.h index 83d47565a..06c614e51 100644 --- a/lib/libspl/include/sys/kmem.h +++ b/lib/libspl/include/sys/kmem.h @@ -35,8 +35,8 @@ extern "C" { #define KM_SLEEP 0x00000000 /* same as KM_SLEEP */ #define KM_NOSLEEP 0x00000001 /* same as KM_NOSLEEP */ -#define kmem_alloc(size, flags) malloc(size) -#define kmem_free(ptr, size) free(ptr) +#define kmem_alloc(size, flags) ((void) sizeof (flags), malloc(size)) +#define kmem_free(ptr, size) ((void) sizeof (size), free(ptr)) #ifdef __cplusplus }