Skip to contentSkip to conversation

tcg-sparc: Fix parenthesis warning

PATCH Applied Richard Henderson 2 participants 2 messages Sep 6, 2013 – Sep 14, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg-sparc: Fix parenthesis warning

error: suggest parentheses around comparison in operand of ‘&’ [-Werror=parentheses]

---
 tcg/sparc/tcg-target.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/sparc/tcg-target.h +1 -1
index 2edf858..1ff2922 100644
@@ -153,7 +153,7 @@ typedef enum {
 static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
 {
     uintptr_t p;
-    for (p = start & -8; p < (stop + 7) & -8; p += 8) {
+    for (p = start & -8; p < ((stop + 7) & -8); p += 8) {
         __asm__ __volatile__("flush\t%0" : : "r" (p));
     }
 }
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 1 line · Richard Henderson

error: suggest parentheses around comparison in operand of ‘&’ [-Werror=parentheses]

Thanks, applied to the trivial-patches queue.

Cc'ing the SPARC code maintainer for possible NAK.

/mjt