use __UNUSED__ macro instead of gcc specific attribute

Use __UNUSED__ macro defined in helper.h instead of the gcc-specific
attribute unused macro.

Partially resolves ipmitool/ipmitool#13

Signed-off-by: Patrick Venture <venture@google.com>
This commit is contained in:
Patrick Venture
2018-11-20 09:11:36 -08:00
committed by Alexander Amelkin
parent 9a55136bfb
commit d6d9c85139
10 changed files with 25 additions and 25 deletions

View File

@@ -41,7 +41,7 @@
#define ASF_TYPE_PING 0x80
#define ASF_TYPE_PONG 0x40
static const struct valstr asf_type_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(asf_type_vals[]) = {
{ 0x10, "Reset" },
{ 0x11, "Power-up" },
{ 0x12, "Unconditional Power-down" },

View File

@@ -46,7 +46,7 @@
#define RMCP_TYPE_NORM 0x00
#define RMCP_TYPE_ACK 0x01
static const struct valstr rmcp_type_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(rmcp_type_vals[]) = {
{ RMCP_TYPE_NORM, "Normal RMCP" },
{ RMCP_TYPE_ACK, "RMCP ACK" },
{ 0, NULL }
@@ -57,7 +57,7 @@ static const struct valstr rmcp_type_vals[] __attribute__((unused)) = {
#define RMCP_CLASS_IPMI 0x07
#define RMCP_CLASS_OEM 0x08
static const struct valstr rmcp_class_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(rmcp_class_vals[]) = {
{ RMCP_CLASS_ASF, "ASF" },
{ RMCP_CLASS_IPMI, "IPMI" },
{ RMCP_CLASS_OEM, "OEM" },

View File

@@ -41,7 +41,7 @@
#define ASF_TYPE_PING 0x80
#define ASF_TYPE_PONG 0x40
static const struct valstr asf_type_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(asf_type_vals[]) = {
{ 0x10, "Reset" },
{ 0x11, "Power-up" },
{ 0x12, "Unconditional Power-down" },

View File

@@ -45,7 +45,7 @@
#define RMCP_TYPE_NORM 0x00
#define RMCP_TYPE_ACK 0x01
static const struct valstr rmcp_type_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(rmcp_type_vals[]) = {
{ RMCP_TYPE_NORM, "Normal RMCP" },
{ RMCP_TYPE_ACK, "RMCP ACK" },
{ 0, NULL }
@@ -56,7 +56,7 @@ static const struct valstr rmcp_type_vals[] __attribute__((unused)) = {
#define RMCP_CLASS_IPMI 0x07
#define RMCP_CLASS_OEM 0x08
static const struct valstr rmcp_class_vals[] __attribute__((unused)) = {
static const struct valstr __UNUSED__(rmcp_class_vals[]) = {
{ RMCP_CLASS_ASF, "ASF" },
{ RMCP_CLASS_IPMI, "IPMI" },
{ RMCP_CLASS_OEM, "OEM" },