diff --git a/include/ipmitool/helper.h b/include/ipmitool/helper.h index 1a464a8..ed8e950 100644 --- a/include/ipmitool/helper.h +++ b/include/ipmitool/helper.h @@ -52,6 +52,12 @@ #define tboolean int #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 */ #ifndef IPMI_UID_MIN # define IPMI_UID_MIN 1