From d2cb016ff8465bba72d5572c4a7e4e5cc8f0458b Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Fri, 8 Dec 2023 05:37:19 -0800 Subject: [PATCH] Remove unused exception parameter from files inc faiss/tests/test_approx_topk.cpp Summary: `-Wunused-exception-parameter` has identified an unused exception parameter. This diff removes it. This: ``` try { ... } catch (exception& e) { // no use of e } ``` should instead be written as ``` } catch (exception&) { ``` If the code compiles, this is safe to land. Reviewed By: algoriddle Differential Revision: D51977717 fbshipit-source-id: 47a308ff3570935829531663252409b4e0cfdec4 --- tests/test_approx_topk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_approx_topk.cpp b/tests/test_approx_topk.cpp index 23087f629d..4bdf8f6c27 100644 --- a/tests/test_approx_topk.cpp +++ b/tests/test_approx_topk.cpp @@ -99,7 +99,7 @@ void test_approx_topk( k, approxDistances.data(), approxIndices.data()); - } catch (const faiss::FaissException& ex) { + } catch (const faiss::FaissException&) { // if (verbose) { printf("Skipping the case.\n");