From f994e0a428f7a5493a65057508a75072d71ce371 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Feb 2024 16:02:28 +0100 Subject: [PATCH] utils: Define ignore_result() so it requires a semicolon It previously also added its own empty statement. --- src/libstrongswan/utils/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index 40fe76af8..42d01144a 100644 --- a/src/libstrongswan/utils/utils.h +++ b/src/libstrongswan/utils/utils.h @@ -217,7 +217,7 @@ void utils_deinit(); /** * Ignore result of functions tagged with warn_unused_result attributes */ -#define ignore_result(call) { if(call){}; } +#define ignore_result(call) do { if(call){} } while(0) #if !defined(HAVE_SIGWAITINFO) && !defined(WIN32) /**