From 07931bd52a4a2009c1e8bcc8ff91cfb5b07bb04d Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 1 Oct 2026 15:16:36 +0200 Subject: [PATCH] error_handler.h: Remove return statements after throw They were dead code. --- include/etl/error_handler.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/etl/error_handler.h b/include/etl/error_handler.h index 9f7dfba6..e234d9bb 100644 --- a/include/etl/error_handler.h +++ b/include/etl/error_handler.h @@ -367,7 +367,6 @@ namespace etl { \ etl::error_handler::error((e)); \ throw((e)); \ - return; \ } \ } while (false) // If the condition fails, calls the error handler then // throws an exception. @@ -377,7 +376,6 @@ namespace etl { \ etl::error_handler::error((e)); \ throw((e)); \ - return (v); \ } \ } while (false) // If the condition fails, calls the error handler then // throws an exception. @@ -391,13 +389,11 @@ namespace etl do { \ etl::error_handler::error((e)); \ throw((e)); \ - return; \ } while (false) // Calls the error handler then throws an exception. #define ETL_ASSERT_FAIL_AND_RETURN_VALUE(e, v) \ do { \ etl::error_handler::error((e)); \ throw((e)); \ - return (v); \ } while (false) // Calls the error handler then throws an exception. #else #define ETL_ASSERT(b, e) \