Skip to content

Commit aad8efd

Browse files
Remove unused exception parameter from executorch/backends/vulkan/test/custom_ops/utils.cpp (#16253)
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: dtolnay Differential Revision: D89014357 cc @SS-JIA @digantdesai @cbilgin Co-authored-by: Richard Barnes <rbarnes@meta.com>
1 parent b081123 commit aad8efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/vulkan/test/custom_ops/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ TestResult execute_test_cases(
12881288
try {
12891289
result = execute_test_case(test_case, warmup_runs, benchmark_runs);
12901290
result.set_operator_name(test_case.operator_name());
1291-
} catch (const vkcompute::vkapi::ShaderNotSupportedError& e) {
1291+
} catch (const vkcompute::vkapi::ShaderNotSupportedError&) {
12921292
result = BenchmarkResult(
12931293
test_case.name().empty() ? "unnamed_test_case" : test_case.name(),
12941294
test_case.operator_name());

0 commit comments

Comments
 (0)