From 963599cea655f5db88c9dc08076625d42d60d27c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 4 Jun 2024 15:07:15 -0400 Subject: Avoid empty catch block Mainly to appease clang-tidy. --- test/build_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/build_test.cpp b/test/build_test.cpp index 169c331..f8c3085 100644 --- a/test/build_test.cpp +++ b/test/build_test.cpp @@ -39,7 +39,8 @@ main() try { const raul::Symbol bad_symbol("not a valid symbol!"); (void)bad_symbol; - } catch (const raul::Exception&) { + } catch (const raul::Exception& e) { + (void)e; } #if !defined(_WIN32) && !defined(__EMSCRIPTEN__) -- cgit v1.2.1