Skip to content

Commit 772ea36

Browse files
r-barnesfacebook-github-bot
authored andcommitted
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
1 parent aa21b80 commit 772ea36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchao/csrc/rocm/swizzle/swizzle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ static size_t _parseChosenWorkspaceSize() {
174174
if (val.has_value()) {
175175
try {
176176
workspace_size = std::stoi(val.value());
177-
} catch(std::invalid_argument const& e) {
177+
} catch(std::invalid_argument const&) {
178178
TORCH_WARN("invalid CUBLASLT_WORKSPACE_SIZE,",
179179
" using default workspace size of ", workspace_size, " KiB.");
180-
} catch(std::out_of_range const& e) {
180+
} catch(std::out_of_range const&) {
181181
TORCH_WARN("CUBLASLT_WORKSPACE_SIZE out of range,",
182182
" using default workspace size of ", workspace_size, " KiB.");
183183
}

0 commit comments

Comments
 (0)