From 32638b6bb67fa1009d22bd69dc62d8cba9e2aaa3 Mon Sep 17 00:00:00 2001 From: Rose Date: Tue, 13 Aug 2024 14:28:56 -0400 Subject: [PATCH] (NFC) Replace dirty hack with (void)isHFSPlusCanonical; --- 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); }