commit | b2fdda43cf0699f60e711429c778ff1685e30062 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 20 20:52:51 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Feb 20 20:52:51 2007 +0100 |
tree | 597d4b0a69992a9aa82ed8b225bc93d78f51ae81 | |
parent | 948f9b2eed7aeee6367957ea30be7a2da94d5b1b [diff] [blame] |
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