utils: Define ignore_result() so it requires a semicolon

It previously also added its own empty statement.
This commit is contained in:
Tobias Brunner
2024-02-29 16:02:28 +01:00
parent 6dee8587f0
commit f994e0a428
+1 -1
View File
@@ -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)
/**