This is an automated email from the ASF dual-hosted git repository.

airborne pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/clucene by this push:
     new a82acd50f9c [compile] fix compile warning for duplicate macro (#353)
a82acd50f9c is described below

commit a82acd50f9c2e1b38a189635d411b55f670dda8c
Author: Jack <jiang...@selectdb.com>
AuthorDate: Tue Aug 26 15:41:20 2025 +0800

    [compile] fix compile warning for duplicate macro (#353)
---
 src/core/CLucene/CLConfig.h     | 2 +-
 src/core/CLucene/util/VoidMap.h | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/core/CLucene/CLConfig.h b/src/core/CLucene/CLConfig.h
index eca5dc5e1db..23d15329625 100644
--- a/src/core/CLucene/CLConfig.h
+++ b/src/core/CLucene/CLConfig.h
@@ -31,7 +31,7 @@
 //disable hashmap/set usage. Just use map and set.
 //this has been shown to be quicker than the hash equivalents in some 
impementations
 #ifndef LUCENE_DISABLE_HASHING
-    #define LUCENE_DISABLE_HASHING
+    #define LUCENE_DISABLE_HASHING 1
 #endif
 //
 ////////////////////////////////////////////////////////////////////
diff --git a/src/core/CLucene/util/VoidMap.h b/src/core/CLucene/util/VoidMap.h
index 1037a9b8da3..08d4607e6f1 100644
--- a/src/core/CLucene/util/VoidMap.h
+++ b/src/core/CLucene/util/VoidMap.h
@@ -21,7 +21,7 @@
        #include <ext/hash_map>
        #include <ext/hash_set>
 #elif !defined(LUCENE_DISABLE_HASHING)
-       #define LUCENE_DISABLE_HASHING
+       #define LUCENE_DISABLE_HASHING 1
 #endif
 
 CL_NS_DEF(util)
@@ -177,7 +177,7 @@ public:
                if ( _this::dk || _this::dv )
                        _this::remove(k);
 
-               (*this)[k] = v;;
+               (*this)[k] = v;
        }
 
 };
@@ -211,7 +211,7 @@ public:
                if ( _this::dk || _this::dv )
                        _this::remove(k);
 
-               (*this)[k] = v;;
+               (*this)[k] = v;
        }
 
 };
@@ -246,7 +246,7 @@ public:
                if ( _this::dk || _this::dv )
                        _this::remove(k);
 
-               (*this)[k] = v;;
+               (*this)[k] = v;
        }
 
 };


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to