X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=compiler%2Fcompiler.h;h=036ba208e861e79225a3e8827f5ff81895c50818;hb=6a79a4cbe0c9c9a72a1064b55fdefbcb6257942d;hp=33500a9b02a53c4259c307d69fff96d8c7369646;hpb=7ed4d7abf0d7720d532d9680ebf69745d9270a5e;p=fio.git diff --git a/compiler/compiler.h b/compiler/compiler.h index 33500a9b..036ba208 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h @@ -13,14 +13,11 @@ #define __must_check #endif -#define uninitialized_var(x) x = x - -#ifndef __weak -#ifndef __CYGWIN__ -#define __weak __attribute__((weak)) -#else -#define __weak -#endif -#endif +/* + * Mark unused variables passed to ops functions as unused, to silence gcc + */ +#define fio_unused __attribute__((__unused__)) +#define fio_init __attribute__((constructor)) +#define fio_exit __attribute__((destructor)) #endif