[prev in list] [next in list] [prev in thread] [next in thread]
List: mesa3d-dev
Subject: [Mesa3d-dev] [PATCH] Fix "cast to pointer from integer of different
From: Tomas Carnecky <tom () dbservice ! com>
Date: 2009-02-26 6:31:35
Message-ID: 1235629895-4532-1-git-send-email-tom () dbservice ! com
[Download RAW message or body]
The script generates code like:
pixels = (const GLvoid *) (ptr_is_null != 0) ? NULL : (pc + 80);
which causes the above mentioned warning. Add parenthesis around the
whole expression to fix it.
Signed-off-by: Tomas Carnecky <tom@dbservice.com>
---
I mistakenly created a patch for the xserver, not knowing that the
code is generated with a script. Peter Hutterer already applied the
it so there is no need to regenerate the glx source in the xserver,
see commit dd3f4e829286e62f4c5c07ee93f9f576876acbf9
src/mesa/glapi/glX_proto_recv.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/glapi/glX_proto_recv.py b/src/mesa/glapi/glX_proto_recv.py
index 923c195..f423c6d 100644
--- a/src/mesa/glapi/glX_proto_recv.py
+++ b/src/mesa/glapi/glX_proto_recv.py
@@ -277,7 +277,7 @@ class \
PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): if param.is_image():
offset = f.offset_of( param.name )
- print '%s %s const %s = (%s) %s(pc + %s);' % (indent, type_string, \
param.name, type_string, cond, offset) + print '%s %s const %s = (%s) (%s(pc + \
%s));' % (indent, type_string, param.name, type_string, cond, offset)
if param.depth:
print '%s __GLXpixel3DHeader * const hdr = (__GLXpixel3DHeader *)(pc);' % \
(indent)
--
1.6.1.3
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic