utils: Define ignore_result() so it requires a semicolon
It previously also added its own empty statement.
This commit is contained in:
@@ -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)
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user