summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index bfd3ce8b7..e7ab5feea 100644
--- a/include/common.h
+++ b/include/common.h
@@ -72,10 +72,11 @@
#ifndef WARN
#define WARN(condition, format...) ({ \
int __ret_warn_on = !!(condition); \
- if (unlikely(__ret_warn_on)) \
+ if (unlikely(__ret_warn_on)) { \
__WARN(); \
puts("WARNING: "); \
printf(format); \
+ } \
unlikely(__ret_warn_on); \
})
#endif