From eb54edd69760df1a2772b21d85eb9756e8441180 Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Mon, 1 May 2023 22:33:46 -0500 Subject: [PATCH] LU-16785 build: Cleanup test for IS_ENCRYPTED macro Suppress warning when -Wunused-value is enabled. Test-Parameters: trivial Signed-off-by: Shaun Tancheff Change-Id: Iec387286fd8499bb13f43c89e671d7d7aa0de9e1 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50818 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Sebastien Buisson Reviewed-by: Petros Koutoupis Reviewed-by: Oleg Drokin --- lustre/autoconf/lustre-core.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 8603884..358f102 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2510,7 +2510,7 @@ LB_CHECK_COMPILE([if IS_ENCRYPTED is defined], is_encrypted, [ #include ],[ - IS_ENCRYPTED((struct inode *)0); + (void)IS_ENCRYPTED((struct inode *)1); ],[ has_is_encrypted="yes" ]) -- 1.8.3.1