| commit | 4fee8096bff598ab565ac1d258d584d584433341 | [log] [tgz] |
|---|---|---|
| author | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 29 09:33:03 2007 +0200 |
| committer | Jens Axboe <jens.axboe@oracle.com> | Thu Mar 29 09:33:03 2007 +0200 |
| tree | 1a1ef358ad714798fd7c4c9c0b5856d8ee064014 | |
| parent | 4d651dad4b3ee17a9be223fc1c0489cd4e304f65 [diff] [blame] |
Fix __must_check compile on older compilers Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/compiler-gcc3.h b/compiler-gcc3.h new file mode 100644 index 0000000..ab8ccc4 --- /dev/null +++ b/compiler-gcc3.h
@@ -0,0 +1,8 @@ +#ifndef FIO_COMPILER_GCC3_H +#define FIO_COMPILER_GCC3_H + +#if __GNUC_MINOR__ >= 4 +#define __must_check __attribute__((warn_unused_result)) +#endif + +#endif