Skip to content

Commit d2cb016

Browse files
r-barnesfacebook-github-bot
authored andcommitted
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
1 parent 5b6c4b4 commit d2cb016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_approx_topk.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void test_approx_topk(
9999
k,
100100
approxDistances.data(),
101101
approxIndices.data());
102-
} catch (const faiss::FaissException& ex) {
102+
} catch (const faiss::FaissException&) {
103103
//
104104
if (verbose) {
105105
printf("Skipping the case.\n");

0 commit comments

Comments
 (0)