From: Shaun Tancheff Date: Tue, 2 May 2023 03:33:46 +0000 (-0500) Subject: LU-16785 build: Cleanup test for IS_ENCRYPTED macro X-Git-Tag: 2.15.56~19 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=eb54edd69760df1a2772b21d85eb9756e8441180;p=fs%2Flustre-release.git 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 --- 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" ])