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>
(cherry picked from commit e8c48fd8f7
)
This commit is contained in:
parent
171dc59ec5
commit
ebbac19550
|
@ -47,7 +47,7 @@
|
|||
** Fetch a double from potentially unaligned memory.
|
||||
*/
|
||||
#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)
|
||||
#else
|
||||
#define __GLX_GET_DOUBLE(dst,src) (dst) = *((GLdouble*)(src))
|
||||
|
|
Loading…
Reference in New Issue
Block a user