From 772ea3618a96d9eb3c82e336b8ba72ffb8c07e70 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Fri, 5 Dec 2025 09:14:36 -0800 Subject: [PATCH] Remove unused exception parameter from multifeed/recommendation_platform/corpus/backfill/BackfillMain.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. Differential Revision: D88448341 --- torchao/csrc/rocm/swizzle/swizzle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/torchao/csrc/rocm/swizzle/swizzle.cpp b/torchao/csrc/rocm/swizzle/swizzle.cpp index feff97f56a..23fdb2bbad 100644 --- a/torchao/csrc/rocm/swizzle/swizzle.cpp +++ b/torchao/csrc/rocm/swizzle/swizzle.cpp @@ -174,10 +174,10 @@ static size_t _parseChosenWorkspaceSize() { if (val.has_value()) { try { workspace_size = std::stoi(val.value()); - } catch(std::invalid_argument const& e) { + } catch(std::invalid_argument const&) { TORCH_WARN("invalid CUBLASLT_WORKSPACE_SIZE,", " using default workspace size of ", workspace_size, " KiB."); - } catch(std::out_of_range const& e) { + } catch(std::out_of_range const&) { TORCH_WARN("CUBLASLT_WORKSPACE_SIZE out of range,", " using default workspace size of ", workspace_size, " KiB."); }