Bump version to 5.0-14
[LibreOffice.git] / external / clucene / patches / clucene-warnings.patch
blobdc20d198170c8d3c5fb044b75f80910654fb57a5
1 --- src/core/CLucene/analysis/AnalysisHeader.h 2012-02-22 12:37:22.531637934 +0000
2 +++ src/core/CLucene/analysis/AnalysisHeader.h 2012-02-22 12:39:15.369916728 +0000
3 @@ -7,6 +7,12 @@
4 #ifndef _lucene_analysis_AnalysisHeader_
5 #define _lucene_analysis_AnalysisHeader_
7 +#include <config_global.h>
8 +#if defined(__GNUC__)
9 +# pragma GCC diagnostic push
10 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
11 +#endif
13 #include "CLucene/index/Payload.h"
14 #include "CLucene/util/VoidList.h"
15 #include "CLucene/LuceneThreads.h"
16 @@ -361,4 +361,8 @@
19 CL_NS_END
21 +#if defined(__GNUC__)
22 +# pragma GCC diagnostic pop
23 +#endif
24 #endif
25 --- src/core/CLucene/search/Searchable.h 2012-02-22 12:37:22.513637729 +0000
26 +++ src/core/CLucene/search/Searchable.h 2012-02-22 12:38:51.073641550 +0000
27 @@ -7,6 +7,12 @@
28 #ifndef _lucene_search_Searcher_
29 #define _lucene_search_Searcher_
31 +#include <config_global.h>
32 +#if defined(__GNUC__)
33 +# pragma GCC diagnostic push
34 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
35 +#endif
38 //#include "CLucene/index/IndexReader.h"
39 CL_CLASS_DEF(index,Term)
40 @@ -180,4 +180,8 @@
43 CL_NS_END
45 +#if defined(__GNUC__)
46 +# pragma GCC diagnostic pop
47 +#endif
48 #endif
49 --- src/core/CLucene/store/IndexInput.h 2012-02-22 12:37:22.508637673 +0000
50 +++ src/core/CLucene/store/IndexInput.h 2012-02-22 12:39:00.465747935 +0000
51 @@ -7,6 +7,12 @@
52 #ifndef _lucene_store_IndexInput_
53 #define _lucene_store_IndexInput_
55 +#include <config_global.h>
56 +#if defined(__GNUC__)
57 +# pragma GCC diagnostic push
58 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
59 +#endif
61 #include "CLucene/LuceneThreads.h"
62 #include "CLucene/util/Equators.h"
64 @@ -195,4 +195,8 @@
65 virtual void seekInternal(const int64_t pos) = 0;
67 CL_NS_END
69 +#if defined(__GNUC__)
70 +# pragma GCC diagnostic pop
71 +#endif
72 #endif
73 --- src/core/CLucene/util/Array.h 2012-02-22 12:37:22.510637696 +0000
74 +++ src/core/CLucene/util/Array.h 2012-02-22 12:38:33.714444884 +0000
75 @@ -7,6 +7,13 @@
76 #ifndef _lucene_util_Array_
77 #define _lucene_util_Array_
79 +#include <config_global.h>
80 +#if defined(__GNUC__)
81 +# pragma GCC diagnostic push
82 +# pragma GCC diagnostic ignored "-Wshadow"
83 +# pragma GCC diagnostic ignored "-Wunused-parameter"
84 +#endif
86 #include <stdlib.h>
87 #include <string.h>
89 @@ -338,4 +338,8 @@
92 CL_NS_END
94 +#if defined(__GNUC__)
95 +# pragma GCC diagnostic pop
96 +#endif
97 #endif
98 --- src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:37:22.510637696 +0000
99 +++ src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:38:40.316519685 +0000
100 @@ -7,6 +7,12 @@
101 #ifndef _lucene_util_PriorityQueue_
102 #define _lucene_util_PriorityQueue_
104 +#include <config_global.h>
105 +#if defined(__GNUC__)
106 +# pragma GCC diagnostic push
107 +# pragma GCC diagnostic ignored "-Wshadow"
108 +#endif
110 #include <stdlib.h>
112 CL_NS_DEF(util)
113 @@ -199,4 +199,8 @@
116 CL_NS_END
118 +#if defined(__GNUC__)
119 +# pragma GCC diagnostic pop
120 +#endif
121 #endif