mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
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:
parent
4ac93853a6
commit
9a55136bfb
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user