summaryrefslogtreecommitdiff
path: root/fb/fb.h
diff options
context:
space:
mode:
Diffstat (limited to 'fb/fb.h')
-rw-r--r--fb/fb.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/fb/fb.h b/fb/fb.h
index 48cf40d38..c9633d248 100644
--- a/fb/fb.h
+++ b/fb/fb.h
@@ -1,5 +1,5 @@
/*
- * $XFree86: xc/programs/Xserver/fb/fb.h,v 1.35 2003/01/30 21:46:30 tsi Exp $
+ * $XFree86: xc/programs/Xserver/fb/fb.h,v 1.37 2003/11/03 05:11:00 tsi Exp $
*
* Copyright © 1998 Keith Packard
*
@@ -105,7 +105,8 @@ typedef unsigned __int64 FbBits;
defined(ia64) || defined(__ia64__) || \
defined(__sparc64__) || \
defined(__s390x__) || \
- defined(x86_64) || defined (__x86_64__)
+ defined(AMD64) || defined (__AMD64__) || \
+ (defined(sgi) && (_MIPS_SZLONG == 64))
typedef unsigned long FbBits;
# else
typedef unsigned long long FbBits;
@@ -652,10 +653,10 @@ typedef struct {
else \
_pPix = (PixmapPtr) (pDrawable); \
(pointer) = (FbBits *) _pPix->devPrivate.ptr; \
- (stride) = ((int) _pPix->devKind) / sizeof (FbBits); \
- (bpp) = _pPix->drawable.bitsPerPixel; \
- (xoff) = __fbPixOriginX(_pPix); \
- (yoff) = __fbPixOriginY(_pPix); \
+ (stride) = ((int) _pPix->devKind) / sizeof (FbBits); (void)(stride); \
+ (bpp) = _pPix->drawable.bitsPerPixel; (void)(bpp); \
+ (xoff) = __fbPixOriginX(_pPix); (void)(xoff); \
+ (yoff) = __fbPixOriginY(_pPix); (void)(yoff); \
}
#define fbGetStipDrawable(pDrawable, pointer, stride, bpp, xoff, yoff) { \
@@ -665,10 +666,10 @@ typedef struct {
else \
_pPix = (PixmapPtr) (pDrawable); \
(pointer) = (FbStip *) _pPix->devPrivate.ptr; \
- (stride) = ((int) _pPix->devKind) / sizeof (FbStip); \
- (bpp) = _pPix->drawable.bitsPerPixel; \
- (xoff) = __fbPixOriginX(_pPix); \
- (yoff) = __fbPixOriginY(_pPix); \
+ (stride) = ((int) _pPix->devKind) / sizeof (FbStip); (void)(stride); \
+ (bpp) = _pPix->drawable.bitsPerPixel; (void)(bpp); \
+ (xoff) = __fbPixOriginX(_pPix); (void)(xoff); \
+ (yoff) = __fbPixOriginY(_pPix); (void)(yoff); \
}
/*