lib: route-table improvements.
[openvswitch] / lib / compiler.h
index 2bb801a48c199ec9e47e0bfa4ec4f4fab7bc9994..6bf514456fbde230ec0c9e5861c90a324275224b 100644 (file)
@@ -24,6 +24,7 @@
 #define STRFTIME_FORMAT(FMT) __attribute__((__format__(__strftime__, FMT, 0)))
 #define MALLOC_LIKE __attribute__((__malloc__))
 #define ALWAYS_INLINE __attribute__((always_inline))
+#define WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
 #else
 #define NO_RETURN
 #define OVS_UNUSED
@@ -31,6 +32,7 @@
 #define STRFTIME_FORMAT(FMT)
 #define MALLOC_LIKE
 #define ALWAYS_INLINE
+#define WARN_UNUSED_RESULT
 #endif
 
 #endif /* compiler.h */