summaryrefslogtreecommitdiff
path: root/clucene
diff options
context:
space:
mode:
authorCatalin Iacob <iacobcatalin@gmail.com>2012-04-18 22:52:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-04-23 14:16:34 +0200
commit835a063cee7f40169e3223cd2c56204e24d912f4 (patch)
treea35dfc165dd9982c99c39ee54eaff1a5847c14d2 /clucene
parent8eb9c441d4dc7b1a1fc3a1fbf4104b2fda1d071d (diff)
WaE: patch CLucene to avoid Clang unused parameter warning
Diffstat (limited to 'clucene')
-rw-r--r--clucene/CustomTarget_source.mk1
-rw-r--r--clucene/patches/clucene-multimap-put.patch9
2 files changed, 10 insertions, 0 deletions
diff --git a/clucene/CustomTarget_source.mk b/clucene/CustomTarget_source.mk
index 474d1b838a8e..55e5d2404531 100644
--- a/clucene/CustomTarget_source.mk
+++ b/clucene/CustomTarget_source.mk
@@ -66,6 +66,7 @@ $(CLSO)/done : $(cl_FIXED_TARFILE_LOCATION) \
$(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-gcc-atomics.patch && \
$(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-debug.patch && \
$(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-narrowing-conversions.patch && \
+ $(GNUPATCH) -p0 < $(SRCDIR)/clucene/patches/clucene-multimap-put.patch && \
for i in `find $(CLSO)/ -name "*.cpp"`; do mv $$i $${i%%cpp}cxx; done)
#FIXME ?, our rules expect .cxx
ifneq ($(OS),WNT)
diff --git a/clucene/patches/clucene-multimap-put.patch b/clucene/patches/clucene-multimap-put.patch
new file mode 100644
index 000000000000..bfff31a8727b
--- /dev/null
+++ b/clucene/patches/clucene-multimap-put.patch
@@ -0,0 +1,9 @@
+--- src/core/CLucene/util/VoidMap.h
++++ src/core/CLucene/util/VoidMap.h
+@@ -316,6 +316,7 @@ public:
+ if ( _this::dk || _this::dv )
+ _this::remove(k);
+
++ (*this)[k] = v;
+ }
+ };