Skip to content

Commit db7c11c

Browse files
authored
fix: Fix Fedora 30 and MacOS build (#5880)
Also use #pragma to silence warnings from geometry.hpp Signed-off-by: mkaruza <[email protected]>
1 parent 1da4817 commit db7c11c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/core/search/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ add_library(dfly_search_core base.cc ast_expr.cc query_driver.cc search.cc indic
1010
range_tree.cc synonyms.cc ${gen_dir}/parser.cc ${gen_dir}/lexer.cc)
1111

1212
target_link_libraries(dfly_search_core base redis_lib absl::strings
13-
TRDP::reflex TRDP::uni-algo TRDP::hnswlib)
13+
TRDP::reflex TRDP::uni-algo TRDP::hnswlib Boost::headers)
1414

1515
if(WITH_SIMSIMD)
1616
target_link_libraries(dfly_search_core TRDP::simsimd)

src/core/search/indices.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@
88
#include <absl/container/flat_hash_map.h>
99
#include <absl/container/flat_hash_set.h>
1010

11+
// Wrong warning reported when geometry.hpp is loaded
12+
#ifndef __clang__
13+
#pragma GCC diagnostic push
14+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
15+
#endif
1116
#include <boost/geometry.hpp>
17+
#ifndef __clang__
18+
#pragma GCC diagnostic pop
19+
#endif
20+
1221
#include <map>
1322
#include <memory>
1423
#include <optional>

0 commit comments

Comments
 (0)