xserver: Branch 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Mon Oct 2 21:29:16 EEST 2006


 fb/fb.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

New commits:
diff-tree df800d87e04ce984a8a9ab4252ac6478ab1e4426 (from d7c89c7c1c8c1e110345d9d8d300adbf5fe5804a)
Author: Alan Coopersmith <alan.coopersmith at sun.com>
Date:   Mon Oct 2 11:28:47 2006 -0700

    Add (void) casts to clear compiler errors about ?: results having type mismatch

diff --git a/fb/fb.h b/fb/fb.h
index edd9392..de0b3a8 100644
--- a/fb/fb.h
+++ b/fb/fb.h
@@ -488,20 +488,20 @@ extern void fbSetBits (FbStip *bits, int
  * The term "lane" comes from the hardware term "byte-lane" which
  */
 
-#define FbLaneCase1(n,a,o)  ((n) == 0x01 ? \
+#define FbLaneCase1(n,a,o)  ((n) == 0x01 ? (void) \
 			     WRITE((CARD8 *) ((a)+FbPatternOffset(o,CARD8)), \
-			      fgxor) : 0)
-#define FbLaneCase2(n,a,o)  ((n) == 0x03 ? \
+			      fgxor) : (void) 0)
+#define FbLaneCase2(n,a,o)  ((n) == 0x03 ? (void) \
 			     WRITE((CARD16 *) ((a)+FbPatternOffset(o,CARD16)), \
 			      fgxor) : \
 			     ((void)FbLaneCase1((n)&1,a,o), \
 				    FbLaneCase1((n)>>1,a,(o)+1)))
-#define FbLaneCase4(n,a,o)  ((n) == 0x0f ? \
+#define FbLaneCase4(n,a,o)  ((n) == 0x0f ? (void) \
 			     WRITE((CARD32 *) ((a)+FbPatternOffset(o,CARD32)), \
 			      fgxor) : \
 			     ((void)FbLaneCase2((n)&3,a,o), \
 				    FbLaneCase2((n)>>2,a,(o)+2)))
-#define FbLaneCase8(n,a,o)  ((n) == 0x0ff ? (*(FbBits *) ((a)+(o)) = fgxor) : \
+#define FbLaneCase8(n,a,o)  ((n) == 0x0ff ? (void) (*(FbBits *) ((a)+(o)) = fgxor) : \
 			     ((void)FbLaneCase4((n)&15,a,o), \
 				    FbLaneCase4((n)>>4,a,(o)+4)))
 



More information about the xorg-commit mailing list