diff --git a/faiss/AutoTune.cpp b/faiss/AutoTune.cpp index fd9bb62f71..d990ae6463 100644 --- a/faiss/AutoTune.cpp +++ b/faiss/AutoTune.cpp @@ -314,7 +314,7 @@ bool ParameterSpace::combination_ge(size_t c1, size_t c2) const { } #define DC(classname) \ - const classname* ix = dynamic_cast(index) + [[maybe_unused]] const classname* ix = dynamic_cast(index) static void init_pq_ParameterRange( const ProductQuantizer& pq,