X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=compiler%2Fcompiler.h;h=036ba208e861e79225a3e8827f5ff81895c50818;hp=8dec350b9f9eb4e1c495e5c7aa1174b60169cbd3;hb=5903e7b7907854014478b6febfc5645a203ff59e;hpb=c3d3178b0e14dc1612b397f115d7853200b62146 diff --git a/compiler/compiler.h b/compiler/compiler.h index 8dec350b..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