From 74624f2cd25ad0b30519d4775585ee963cc4b743 Mon Sep 17 00:00:00 2001 From: Zenithal Date: Tue, 8 Feb 2022 07:42:16 +0800 Subject: Eliminate Wunknown-pragmas for Clang/LLVM (#265) --- util/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/string.c b/util/string.c index 90d7127..9ce53fa 100644 --- a/util/string.c +++ b/util/string.c @@ -4,7 +4,7 @@ #include #include -#ifdef __GNUC__ +#if defined(__GNUC__) && !defined(__llvm__) // Don't let GCC pattern-match these functions' bodies into self-calls #pragma GCC optimize ("no-tree-loop-distribute-patterns") #endif -- cgit v1.1