diff options
author | Jeremy Maitin-Shepard <jbms@google.com> | 2019-02-04 20:22:56 (GMT) |
---|---|---|
committer | Jeremy Maitin-Shepard <jbms@google.com> | 2019-02-04 20:22:56 (GMT) |
commit | 26e7635a0e3898bafb9e2299b8c95dd571ebe7b1 (patch) | |
tree | be380cda03394be5c739704293056d3b63b09444 | |
parent | c3f0753d30b600fee46c1a64a2600b1f5fc7e93b (diff) | |
download | lz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.zip lz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.tar.gz lz4-26e7635a0e3898bafb9e2299b8c95dd571ebe7b1.tar.bz2 |
Eliminate optimize attribute warning with clang on PPC64LE
-rw-r--r-- | lib/lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |