Skip to content

Commit b7681be

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Remove unused exception parameter from files inc facer/engine/utils/StatsD.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: dmm-fb Differential Revision: D51977749 fbshipit-source-id: aab6f8bcb8a0d9273b7894b8e85615d4a31cac86
1 parent 449f02c commit b7681be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/IndexIDMap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ void IndexIDMap2Template<IndexT>::reconstruct(
266266
typename IndexT::component_t* recons) const {
267267
try {
268268
this->index->reconstruct(rev_map.at(key), recons);
269-
} catch (const std::out_of_range& e) {
269+
} catch (const std::out_of_range&) {
270270
FAISS_THROW_FMT("key %" PRId64 " not found", key);
271271
}
272272
}

0 commit comments

Comments
 (0)