summaryrefslogtreecommitdiff
path: root/clucene
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-02-22 12:41:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-02-23 10:31:22 +0000
commit9f33cd3f6c4d48519511e7c3eef67f1f671c2814 (patch)
tree6ed5fe7f84a6effe1cab3df01e1cdbf0c0da5e02 /clucene
parent03aebc6b11ebbb3cd5988381311025373eb194eb (diff)
disable warnings in exported headers
Diffstat (limited to 'clucene')
-rw-r--r--clucene/patches/clucene-warnings.patch54
-rw-r--r--clucene/source/Makefile1
2 files changed, 55 insertions, 0 deletions
diff --git a/clucene/patches/clucene-warnings.patch b/clucene/patches/clucene-warnings.patch
new file mode 100644
index 000000000000..b9676d90260c
--- /dev/null
+++ b/clucene/patches/clucene-warnings.patch
@@ -0,0 +1,54 @@
+--- src/core/CLucene/analysis/AnalysisHeader.h 2012-02-22 12:37:22.531637934 +0000
++++ src/core/CLucene/analysis/AnalysisHeader.h 2012-02-22 12:39:15.369916728 +0000
+@@ -7,6 +7,8 @@
+ #ifndef _lucene_analysis_AnalysisHeader_
+ #define _lucene_analysis_AnalysisHeader_
+
++#pragma GCC system_header
++
+ #include "CLucene/index/Payload.h"
+ #include "CLucene/util/VoidList.h"
+ #include "CLucene/LuceneThreads.h"
+--- src/core/CLucene/search/Searchable.h 2012-02-22 12:37:22.513637729 +0000
++++ src/core/CLucene/search/Searchable.h 2012-02-22 12:38:51.073641550 +0000
+@@ -7,6 +7,7 @@
+ #ifndef _lucene_search_Searcher_
+ #define _lucene_search_Searcher_
+
++#pragma GCC system_header
+
+ //#include "CLucene/index/IndexReader.h"
+ CL_CLASS_DEF(index,Term)
+--- src/core/CLucene/store/IndexInput.h 2012-02-22 12:37:22.508637673 +0000
++++ src/core/CLucene/store/IndexInput.h 2012-02-22 12:39:00.465747935 +0000
+@@ -7,6 +7,8 @@
+ #ifndef _lucene_store_IndexInput_
+ #define _lucene_store_IndexInput_
+
++#pragma GCC system_header
++
+ #include "CLucene/LuceneThreads.h"
+ #include "CLucene/util/Equators.h"
+
+--- 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,8 @@
+ #ifndef _lucene_util_Array_
+ #define _lucene_util_Array_
+
++#pragma GCC system_header
++
+ #include <stdlib.h>
+ #include <string.h>
+
+--- src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:37:22.510637696 +0000
++++ src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:38:40.316519685 +0000
+@@ -7,6 +7,8 @@
+ #ifndef _lucene_util_PriorityQueue_
+ #define _lucene_util_PriorityQueue_
+
++#pragma GCC system_header
++
+ #include <stdlib.h>
+
+ CL_NS_DEF(util)
diff --git a/clucene/source/Makefile b/clucene/source/Makefile
index aa5bcfd284ec..b7467b9f4d89 100644
--- a/clucene/source/Makefile
+++ b/clucene/source/Makefile
@@ -40,6 +40,7 @@ done :
# FIXME: do not hardcode the path here
$(GNUTAR) -x --strip-component=1 -f $(FIXED_TARFILE_LOCATION)/48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
$(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-internal-zlib.patch
+ $(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-warnings.patch
#FIXME ?, our rules expect .cxx
for i in `find . -name "*.cpp"`; do mv $$i $${i%%cpp}cxx; done
ifneq ($(OS),WNT)