Sounds like a straightforward fix to cast the memmove to (void) as well.
As I cannot reproduce this warning/error myself, can you confirm this fix is 
correct?
From abccbc643c893726a0dd3aa6d7c7f8a9fd4c38bf Mon Sep 17 00:00:00 2001
From: Luke Dashjr <luke-jr+...@utopios.org>
Date: Sun, 18 May 2014 21:36:24 +0000
Subject: [PATCH] Bugfix: swap32to?e: Ensure conditionals always have the same
 type

---
 miner.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/miner.h b/miner.h
index 9c00e06..333cad9 100644
--- a/miner.h
+++ b/miner.h
@@ -690,14 +690,14 @@ static inline void swap32yes(void*out, const void*in, size_t sz) {
 // end
 
 #ifdef WORDS_BIGENDIAN
-#  define swap32tobe(out, in, sz)  ((out == in) ? (void)0 : memmove(out, in, sz))
+#  define swap32tobe(out, in, sz)  ((out == in) ? (void)0 : (void)memmove(out, in, sz))
 #  define LOCAL_swap32be(type, var, sz)  ;
 #  define swap32tole(out, in, sz)  swap32yes(out, in, sz)
 #  define LOCAL_swap32le(type, var, sz)  LOCAL_swap32(type, var, sz)
 #else
 #  define swap32tobe(out, in, sz)  swap32yes(out, in, sz)
 #  define LOCAL_swap32be(type, var, sz)  LOCAL_swap32(type, var, sz)
-#  define swap32tole(out, in, sz)  ((out == in) ? (void)0 : memmove(out, in, sz))
+#  define swap32tole(out, in, sz)  ((out == in) ? (void)0 : (void)memmove(out, in, sz))
 #  define LOCAL_swap32le(type, var, sz)  ;
 #endif
 
-- 
1.8.5.5

Reply via email to