Static error value checking

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/os.h b/os.h
index a2699dd..da80fbd 100644
--- a/os.h
+++ b/os.h
@@ -54,4 +54,10 @@
 #define FIO_HUGE_PAGE			(4096 * 1024)
 #endif
 
+#if __GNUC__ < 3
+#define __must_check
+#else
+#define __must_check			__attribute__((warn_unused_result))
+#endif
+
 #endif