Skip to content

Commit

Permalink
(NFC) Replace unused variable hack with (void)
Browse files Browse the repository at this point in the history
  • Loading branch information
AZero13 committed Aug 17, 2024
1 parent a39f398 commit edea673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CoreFoundation/include/CFUnicodeDecomposition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit edea673

Please sign in to comment.