summaryrefslogtreecommitdiffstats
path: root/external/clucene/patches/clucene-warnings.patch
blob: 6326f6c35a00210049026a5d813c333db5ba850d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
--- 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,11 @@
 #ifndef _lucene_analysis_AnalysisHeader_
 #define _lucene_analysis_AnalysisHeader_
 
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
+
 #include "CLucene/index/Payload.h"
 #include "CLucene/util/VoidList.h"
 #include "CLucene/LuceneThreads.h"
@@ -361,4 +361,8 @@
 };
 
 CL_NS_END
+
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic pop
+#endif
 #endif
--- 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,11 @@
 #ifndef _lucene_search_Searcher_
 #define _lucene_search_Searcher_
 
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
+
 
 //#include "CLucene/index/IndexReader.h"
 CL_CLASS_DEF(index,Term)
@@ -180,4 +180,8 @@
 	};
 
 CL_NS_END
+
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic pop
+#endif
 #endif
--- 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,11 @@
 #ifndef _lucene_store_IndexInput_
 #define _lucene_store_IndexInput_
 
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Woverloaded-virtual"
+#endif
+
 #include "CLucene/LuceneThreads.h"
 #include "CLucene/util/Equators.h"
 
@@ -195,4 +195,8 @@
 		virtual void seekInternal(const int64_t pos) = 0;
 	};
 CL_NS_END
+
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic pop
+#endif
 #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,20 @@
 #ifndef _lucene_util_Array_
 #define _lucene_util_Array_
 
+#if defined(__GNUC__) || defined __clang__
+# 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>
 
@@ -338,4 +338,8 @@
 
 
 CL_NS_END
+
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic pop
+#endif
 #endif
--- 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,11 @@
 #ifndef _lucene_util_PriorityQueue_
 #define _lucene_util_PriorityQueue_
 
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wshadow"
+#endif
+
 #include <stdlib.h>
 
 CL_NS_DEF(util)
@@ -199,4 +199,8 @@
 	};
 
 CL_NS_END
+
+#if defined(__GNUC__) || defined __clang__
+# pragma GCC diagnostic pop
+#endif
 #endif