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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue