diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-01-20 19:20:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-01-21 07:57:44 +0100 |
commit | dda3fc05a2900539836f9748d418dc56247a2ddc (patch) | |
tree | aad2fa15676354d793138990a6d0bdfed101be53 /external/clucene | |
parent | e941434d98fa1500ad85be3ff59117d62ac8bc24 (diff) |
Fix for Jenkins Gerrit Mac builds
...which choke on
#pragma GCC diagnostic ignored "-Wpragmas"
Change-Id: I40100b43078320b79cb9e3d4e3fb369db0bed9fe
Diffstat (limited to 'external/clucene')
-rw-r--r-- | external/clucene/patches/clucene-warnings.patch | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/external/clucene/patches/clucene-warnings.patch b/external/clucene/patches/clucene-warnings.patch index 270451dfb7fd..6326f6c35a00 100644 --- a/external/clucene/patches/clucene-warnings.patch +++ b/external/clucene/patches/clucene-warnings.patch @@ -69,7 +69,7 @@ #endif --- src/core/CLucene/util/Array.h 2012-02-22 12:37:22.510637696 +0000 +++ src/core/CLucene/util/Array.h 2012-02-22 12:38:33.714444884 +0000 -@@ -7,6 +7,14 @@ +@@ -7,6 +7,20 @@ #ifndef _lucene_util_Array_ #define _lucene_util_Array_ @@ -77,9 +77,15 @@ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wshadow" +# pragma GCC diagnostic ignored "-Wunused-parameter" ++#if defined __clang__ ++#if __has_warning("-Wmisleading-indentation") ++#pragma GCC diagnostic ignored "-Wmisleading-indentation" ++#endif ++#else +# pragma GCC diagnostic ignored "-Wpragmas" +# pragma GCC diagnostic ignored "-Wmisleading-indentation" +#endif ++#endif + #include <stdlib.h> #include <string.h> |