bump product version to 7.6.3.2-android
[LibreOffice.git] / external / clucene / patches / clucene-warnings.patch
blob6326f6c35a00210049026a5d813c333db5ba850d
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,11 @@
4 #ifndef _lucene_analysis_AnalysisHeader_
5 #define _lucene_analysis_AnalysisHeader_
7 +#if defined(__GNUC__) || defined __clang__
8 +# pragma GCC diagnostic push
9 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
10 +#endif
12 #include "CLucene/index/Payload.h"
13 #include "CLucene/util/VoidList.h"
14 #include "CLucene/LuceneThreads.h"
15 @@ -361,4 +361,8 @@
18 CL_NS_END
20 +#if defined(__GNUC__) || defined __clang__
21 +# pragma GCC diagnostic pop
22 +#endif
23 #endif
24 --- src/core/CLucene/search/Searchable.h 2012-02-22 12:37:22.513637729 +0000
25 +++ src/core/CLucene/search/Searchable.h 2012-02-22 12:38:51.073641550 +0000
26 @@ -7,6 +7,11 @@
27 #ifndef _lucene_search_Searcher_
28 #define _lucene_search_Searcher_
30 +#if defined(__GNUC__) || defined __clang__
31 +# pragma GCC diagnostic push
32 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
33 +#endif
36 //#include "CLucene/index/IndexReader.h"
37 CL_CLASS_DEF(index,Term)
38 @@ -180,4 +180,8 @@
41 CL_NS_END
43 +#if defined(__GNUC__) || defined __clang__
44 +# pragma GCC diagnostic pop
45 +#endif
46 #endif
47 --- src/core/CLucene/store/IndexInput.h 2012-02-22 12:37:22.508637673 +0000
48 +++ src/core/CLucene/store/IndexInput.h 2012-02-22 12:39:00.465747935 +0000
49 @@ -7,6 +7,11 @@
50 #ifndef _lucene_store_IndexInput_
51 #define _lucene_store_IndexInput_
53 +#if defined(__GNUC__) || defined __clang__
54 +# pragma GCC diagnostic push
55 +# pragma GCC diagnostic ignored "-Woverloaded-virtual"
56 +#endif
58 #include "CLucene/LuceneThreads.h"
59 #include "CLucene/util/Equators.h"
61 @@ -195,4 +195,8 @@
62 virtual void seekInternal(const int64_t pos) = 0;
64 CL_NS_END
66 +#if defined(__GNUC__) || defined __clang__
67 +# pragma GCC diagnostic pop
68 +#endif
69 #endif
70 --- src/core/CLucene/util/Array.h 2012-02-22 12:37:22.510637696 +0000
71 +++ src/core/CLucene/util/Array.h 2012-02-22 12:38:33.714444884 +0000
72 @@ -7,6 +7,20 @@
73 #ifndef _lucene_util_Array_
74 #define _lucene_util_Array_
76 +#if defined(__GNUC__) || defined __clang__
77 +# pragma GCC diagnostic push
78 +# pragma GCC diagnostic ignored "-Wshadow"
79 +# pragma GCC diagnostic ignored "-Wunused-parameter"
80 +#if defined __clang__
81 +#if __has_warning("-Wmisleading-indentation")
82 +#pragma GCC diagnostic ignored "-Wmisleading-indentation"
83 +#endif
84 +#else
85 +# pragma GCC diagnostic ignored "-Wpragmas"
86 +# pragma GCC diagnostic ignored "-Wmisleading-indentation"
87 +#endif
88 +#endif
90 #include <stdlib.h>
91 #include <string.h>
93 @@ -338,4 +338,8 @@
96 CL_NS_END
98 +#if defined(__GNUC__) || defined __clang__
99 +# pragma GCC diagnostic pop
100 +#endif
101 #endif
102 --- src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:37:22.510637696 +0000
103 +++ src/core/CLucene/util/PriorityQueue.h 2012-02-22 12:38:40.316519685 +0000
104 @@ -7,6 +7,11 @@
105 #ifndef _lucene_util_PriorityQueue_
106 #define _lucene_util_PriorityQueue_
108 +#if defined(__GNUC__) || defined __clang__
109 +# pragma GCC diagnostic push
110 +# pragma GCC diagnostic ignored "-Wshadow"
111 +#endif
113 #include <stdlib.h>
115 CL_NS_DEF(util)
116 @@ -199,4 +199,8 @@
119 CL_NS_END
121 +#if defined(__GNUC__) || defined __clang__
122 +# pragma GCC diagnostic pop
123 +#endif
124 #endif