From: Tobias Brunner Date: Thu, 29 Feb 2024 15:02:28 +0000 (+0100) Subject: utils: Define ignore_result() so it requires a semicolon X-Git-Tag: 5.9.14dr2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f994e0a428f7a5493a65057508a75072d71ce371;p=thirdparty%2Fstrongswan.git utils: Define ignore_result() so it requires a semicolon It previously also added its own empty statement. --- diff --git a/src/libstrongswan/utils/utils.h b/src/libstrongswan/utils/utils.h index 40fe76af8b..42d01144a2 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) /**