# HG changeset patch # User Ken Raeburn # Date 1139142069 0 # Node ID 6c6e4e3cccc8f446b22ccfb1eef8c644aed23bc5 # Parent 471c1258574d499ec98a7569ceeb1668a71a84e6 (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]: Cast bitfield value to EMACS_INT, to suppress gcc warning. diff -r 471c1258574d -r 6c6e4e3cccc8 src/lisp.h --- a/src/lisp.h Sun Feb 05 12:15:02 2006 +0000 +++ b/src/lisp.h Sun Feb 05 12:21:09 2006 +0000 @@ -484,7 +484,11 @@ in a Lisp object whose data type says it points to something. */ #define XPNTR(a) (XUINT (a) | DATA_SEG_BITS) #else -#define XPNTR(a) XUINT (a) +/* Some versions of gcc seem to consider the bitfield width when + issuing the "cast to pointer from integer of different size" + warning, so the cast is here to widen the value back to its natural + size. */ +#define XPNTR(a) ((EMACS_INT) XUINT (a)) #endif #endif /* not HAVE_SHM */ #endif /* no XPNTR */