aboutsummaryrefslogtreecommitdiff
path: root/src/common/linux/ignore_ret.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/linux/ignore_ret.h')
-rw-r--r--src/common/linux/ignore_ret.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/linux/ignore_ret.h b/src/common/linux/ignore_ret.h
index f60384bb..efd274c2 100644
--- a/src/common/linux/ignore_ret.h
+++ b/src/common/linux/ignore_ret.h
@@ -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_