mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Merge pull request #5040 from oranagra/memrev64ifbe_fix
use safe macro (non empty) in memrev64ifbe to eliminate empty if warning
This commit is contained in:
commit
79f55eeddd
@ -46,9 +46,9 @@ uint64_t intrev64(uint64_t v);
|
|||||||
/* variants of the function doing the actual convertion only if the target
|
/* variants of the function doing the actual convertion only if the target
|
||||||
* host is big endian */
|
* host is big endian */
|
||||||
#if (BYTE_ORDER == LITTLE_ENDIAN)
|
#if (BYTE_ORDER == LITTLE_ENDIAN)
|
||||||
#define memrev16ifbe(p)
|
#define memrev16ifbe(p) ((void)(0))
|
||||||
#define memrev32ifbe(p)
|
#define memrev32ifbe(p) ((void)(0))
|
||||||
#define memrev64ifbe(p)
|
#define memrev64ifbe(p) ((void)(0))
|
||||||
#define intrev16ifbe(v) (v)
|
#define intrev16ifbe(v) (v)
|
||||||
#define intrev32ifbe(v) (v)
|
#define intrev32ifbe(v) (v)
|
||||||
#define intrev64ifbe(v) (v)
|
#define intrev64ifbe(v) (v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user