From 2a3380089f59905565301f11d13c1dde426d4c27 Mon Sep 17 00:00:00 2001 From: ravishankar Date: Sun, 8 Dec 2024 21:13:25 -0800 Subject: [PATCH 1/5] Fix: fix all warnings --- src/aux_compute_groundtruth.cpp | 2 +- src/hnsw.cpp | 2 +- src/lsh.cpp | 4 ++-- src/relative_ng.cpp | 2 +- tests/load_random_dist.cpp | 4 ++-- tests/search_lsh.cpp | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/aux_compute_groundtruth.cpp b/src/aux_compute_groundtruth.cpp index 2608229..27caf1d 100644 --- a/src/aux_compute_groundtruth.cpp +++ b/src/aux_compute_groundtruth.cpp @@ -274,7 +274,7 @@ inline void save_groundtruth_as_one_file(const std::string filename, } template -int aux_main(int argv, char **argc) { +int aux_main([[maybe_unused]] int argv, char **argc) { size_t npoints, nqueries, dim; std::string base_file(argc[2]); std::string query_file(argc[3]); diff --git a/src/hnsw.cpp b/src/hnsw.cpp index 9c365c9..49579fd 100644 --- a/src/hnsw.cpp +++ b/src/hnsw.cpp @@ -268,7 +268,7 @@ namespace grann { _u32 HNSW::search(const T *query, _u32 res_count, const Parameters &search_params, _u32 *indices, float *distances, QueryStats *stats, - std::vector