mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
magic.h: add macro __unused__
__attribute__((unused))
use like:
void myFunc(int arg0, __unused__(arg1)) { ... }
This commit is contained in:
@@ -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 ----------------- */
|
||||
|
||||
Reference in New Issue
Block a user