implement __UNUSED__ macro for marking unused

Implement __UNUSED__ macro for marking symbols unused safely.

Partially resolves ipmitool/ipmitool#13

Signed-off-by: Patrick Venture <venture@google.com>
This commit is contained in:
Patrick Venture 2018-11-20 09:14:48 -08:00 committed by Alexander Amelkin
parent 4ac93853a6
commit 9a55136bfb

View File

@ -52,6 +52,12 @@
#define tboolean int #define tboolean int
#endif #endif
#ifdef __GNUC__
#define __UNUSED__(x) x __attribute__((unused))
#else
#define __UNUSED__(x) x
#endif
/* IPMI spec. - UID 0 reserved, 63 maximum UID which can be used */ /* IPMI spec. - UID 0 reserved, 63 maximum UID which can be used */
#ifndef IPMI_UID_MIN #ifndef IPMI_UID_MIN
# define IPMI_UID_MIN 1 # define IPMI_UID_MIN 1