From edea6735156e80fbe6c2b6eb1dfe70b732ec36f1 Mon Sep 17 00:00:00 2001 From: Rose Date: Tue, 13 Aug 2024 14:28:56 -0400 Subject: [PATCH] (NFC) Replace unused variable hack with (void) --- Sources/CoreFoundation/include/CFUnicodeDecomposition.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CoreFoundation/include/CFUnicodeDecomposition.h b/Sources/CoreFoundation/include/CFUnicodeDecomposition.h index 0bded1f6c0..c9ea67cfb3 100644 --- a/Sources/CoreFoundation/include/CFUnicodeDecomposition.h +++ b/Sources/CoreFoundation/include/CFUnicodeDecomposition.h @@ -18,7 +18,7 @@ CF_EXTERN_C_BEGIN CF_INLINE bool CFUniCharIsDecomposableCharacter(UTF32Char character, bool isHFSPlusCanonical) { - if (isHFSPlusCanonical && !isHFSPlusCanonical) return false; // hack to get rid of "unused" warning + (void)isHFSPlusCanonical; if (character < 0x80) return false; return CFUniCharIsMemberOf(character, kCFUniCharHFSPlusDecomposableCharacterSet); }