From 714a5b188c476ed1acb138792ef744e7db26c3d6 Mon Sep 17 00:00:00 2001 From: Rose Date: Tue, 13 Aug 2024 14:28:56 -0400 Subject: [PATCH] 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); }