summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Maitin-Shepard <jbms@google.com>2019-02-04 20:22:56 (GMT)
committerJeremy Maitin-Shepard <jbms@google.com>2019-02-04 20:22:56 (GMT)
commit26e7635a0e3898bafb9e2299b8c95dd571ebe7b1 (patch)
treebe380cda03394be5c739704293056d3b63b09444
parentc3f0753d30b600fee46c1a64a2600b1f5fc7e93b (diff)
downloadlz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.zip
lz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.tar.gz
lz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.tar.bz2
Eliminate optimize attribute warning with clang on PPC64LE
-rw-r--r--lib/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index 53eff2e..884a9b4 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -143,7 +143,7 @@
* and also LZ4_wildCopy is forcibly inlined, so that the O2 attribute
* of LZ4_wildCopy does not affect the compression speed.
*/
-#if defined(__PPC64__) && defined(__LITTLE_ENDIAN__) && defined(__GNUC__)
+#if defined(__PPC64__) && defined(__LITTLE_ENDIAN__) && defined(__GNUC__) && !defined(__clang__)
# define LZ4_FORCE_O2_GCC_PPC64LE __attribute__((optimize("O2")))
# define LZ4_FORCE_O2_INLINE_GCC_PPC64LE __attribute__((optimize("O2"))) LZ4_FORCE_INLINE
#else