mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-30 22:04:28 +01:00
tweak IGNORE_RET behavior a bit
GCC will still warn about unused return value with the form: if (write(...)); Instead, change the semi-colon to an empty set of braces. BUG=chromium:428478 TEST=build+test still works
This commit is contained in:
parent
b0e5f26233
commit
2f1b7adcd3
@ -35,6 +35,6 @@
|
||||
// the call fails, IGNORE_RET() can be used to mark the return code as ignored.
|
||||
// This avoids spurious compiler warnings.
|
||||
|
||||
#define IGNORE_RET(x) do { if (x); } while (0)
|
||||
#define IGNORE_RET(x) do { if (x) {} } while (0)
|
||||
|
||||
#endif // COMMON_LINUX_IGNORE_RET_H_
|
||||
|
Loading…
Reference in New Issue
Block a user