mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
general: Get rid of some unused parameter warnings
Silence the unused parameter warnings in helper.c introduced earlier. Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
This commit is contained in:
parent
40d52b5fa1
commit
4c155320be
@ -251,6 +251,7 @@ uint8_t *array_ntoh(uint8_t *buffer, size_t length)
|
|||||||
{
|
{
|
||||||
#if WORDS_BIGENDIAN
|
#if WORDS_BIGENDIAN
|
||||||
/* Big-endian host doesn't need conversion from big-endian network */
|
/* Big-endian host doesn't need conversion from big-endian network */
|
||||||
|
(void)length; /* Silence the compiler */
|
||||||
return buffer;
|
return buffer;
|
||||||
#else
|
#else
|
||||||
/* Little-endian host needs conversion from big-endian network */
|
/* Little-endian host needs conversion from big-endian network */
|
||||||
@ -266,6 +267,7 @@ uint8_t *array_letoh(uint8_t *buffer, size_t length)
|
|||||||
return array_byteswap(buffer, length);
|
return array_byteswap(buffer, length);
|
||||||
#else
|
#else
|
||||||
/* Little-endian host doesn't need conversion from little-endian IPMI */
|
/* Little-endian host doesn't need conversion from little-endian IPMI */
|
||||||
|
(void)length; /* Silence the compiler */
|
||||||
return buffer;
|
return buffer;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user