From 91023c26d6e3ddc03fac9d36b5ac5f63f93f48e4 Mon Sep 17 00:00:00 2001 From: Shuyao Qi Date: Wed, 26 Feb 2025 15:12:45 -0800 Subject: [PATCH] Make static method in header inline Summary: Got build failure with flags `[-Werror,-Wunneeded-internal-declaration]` ``` faiss/impl/code_distance/code_distance-sve.h:199:13 error: 'static' function 'distance_four_codes_sve_for_small_m' declared in header file should be declared 'static inline' [-Werror,-Wunneeded-internal-declaration] ``` Reviewed By: vit-ka Differential Revision: D70279069 --- faiss/impl/code_distance/code_distance-sve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/faiss/impl/code_distance/code_distance-sve.h b/faiss/impl/code_distance/code_distance-sve.h index d85e47d279..5aad7234b3 100644 --- a/faiss/impl/code_distance/code_distance-sve.h +++ b/faiss/impl/code_distance/code_distance-sve.h @@ -196,7 +196,7 @@ distance_four_codes_sve( result3); } -static void distance_four_codes_sve_for_small_m( +static inline void distance_four_codes_sve_for_small_m( // the product quantizer const size_t M, // precomputed distances, layout (M, ksub)