From 0ec8d3cae63c3c3fda675290676521ba4f8c3af6 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Fri, 5 Jan 2024 09:40:43 -0800 Subject: [PATCH] Remove unused exception parameter from gloo/rendezvous/context.cc 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: palmje Differential Revision: D51785901 --- gloo/rendezvous/context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gloo/rendezvous/context.cc b/gloo/rendezvous/context.cc index 63c2ec09f..725693ce3 100644 --- a/gloo/rendezvous/context.cc +++ b/gloo/rendezvous/context.cc @@ -46,7 +46,7 @@ ContextFactory::ContextFactory(std::shared_ptr<::gloo::Context> backingContext) GLOO_ENFORCE( backingContext_->getPair(i) != nullptr, "Missing pair in backing context"); - } catch(std::out_of_range& e) { + } catch(std::out_of_range& ) { GLOO_THROW("Backing context not fully connected"); } }