File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4646
4747// endianness conversion
4848#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
49- #define convert_from_le16 (x )
50- #define convert_from_le32 (x )
51- #define convert_from_le64 (x )
49+ #define convert_from_le16 (x ) UNUSED(x)
50+ #define convert_from_le32 (x ) UNUSED(x)
51+ #define convert_from_le64 (x ) UNUSED(x)
5252#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
5353static inline void convert_from_le16 (void * value ) {
5454 * ((uint16_t * )value ) = le16toh (* ((uint16_t * )value ));
Original file line number Diff line number Diff line change 2525
2626// endianness conversion
2727#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
28- #define convert_from_le (x )
28+ #define convert_from_le (x ) ( void )(x)
2929#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
3030#include < type_traits>
3131
You can’t perform that action at this time.
0 commit comments