diff options
author | Zenithal <i@zenithal.me> | 2022-02-08 07:42:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 15:42:16 -0800 |
commit | 74624f2cd25ad0b30519d4775585ee963cc4b743 (patch) | |
tree | 499cc73c303caf4ca83af2af570b12513072d8d6 | |
parent | fb77b0c20020773a36b7fe2660cf02a89fedbeb9 (diff) | |
download | pk-74624f2cd25ad0b30519d4775585ee963cc4b743.zip pk-74624f2cd25ad0b30519d4775585ee963cc4b743.tar.gz pk-74624f2cd25ad0b30519d4775585ee963cc4b743.tar.bz2 |
Eliminate Wunknown-pragmas for Clang/LLVM (#265)
-rw-r--r-- | util/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stdint.h> #include <ctype.h> -#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 |