mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-22 13:21:36 +00:00
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:
committed by
Alexander Amelkin
parent
9a55136bfb
commit
d6d9c85139
@@ -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" },
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user