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:
Alexander Amelkin 2018-08-21 18:08:44 +03:00
parent 40d52b5fa1
commit 4c155320be
No known key found for this signature in database
GPG Key ID: E893587B5B74178D

View File

@ -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
} }