Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
79f55eed
Unverified
Commit
79f55eed
authored
Jun 20, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jun 20, 2018
Browse files
Merge pull request #5040 from oranagra/memrev64ifbe_fix
use safe macro (non empty) in memrev64ifbe to eliminate empty if warning
parents
c6f4118c
26229aa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/endianconv.h
View file @
79f55eed
...
@@ -46,9 +46,9 @@ uint64_t intrev64(uint64_t v);
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment