magic.h: add macro __unused__
__attribute__((unused))
use like:
void myFunc(int arg0, __unused__(arg1)) { ... }
This commit is contained in:
parent
bf96348502
commit
fc02f57d73
|
|
@ -173,9 +173,11 @@ extern char AbortMessage[];
|
|||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define ATTR_FORMAT_PRINTF_1 __attribute__((format (printf,1,2)))
|
||||
#define ATTR_FORMAT_PRINTF_2 __attribute__((format (printf,2,3)))
|
||||
#define __unused__(x) x __attribute__((unused))
|
||||
#else
|
||||
#define ATTR_FORMAT_PRINTF_1 /* */
|
||||
#define ATTR_FORMAT_PRINTF_2 /* */
|
||||
#define __unused__(x) x
|
||||
#endif
|
||||
|
||||
/* ---------------- Start of Machine Configuration Section ----------------- */
|
||||
|
|
|
|||
Loading…
Reference in New Issue