Suppress GCC warnings like "the address of `u1' will always evaluate as `true'".

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Jamey Sharp 2009-10-28 17:48:17 -07:00 committed by Keith Packard
parent 662594aeff
commit e8c48fd8f7

View File

@ -47,7 +47,7 @@
** Fetch a double from potentially unaligned memory. ** Fetch a double from potentially unaligned memory.
*/ */
#ifdef __GLX_ALIGN64 #ifdef __GLX_ALIGN64
#define __GLX_MEM_COPY(dst,src,n) if (src && dst) memcpy(dst,src,n) #define __GLX_MEM_COPY(dst,src,n) if (src != NULL && dst != NULL) memcpy(dst,src,n)
#define __GLX_GET_DOUBLE(dst,src) __GLX_MEM_COPY(&dst,src,8) #define __GLX_GET_DOUBLE(dst,src) __GLX_MEM_COPY(&dst,src,8)
#else #else
#define __GLX_GET_DOUBLE(dst,src) (dst) = *((GLdouble*)(src)) #define __GLX_GET_DOUBLE(dst,src) (dst) = *((GLdouble*)(src))