Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=5315
Summary: 6.41 Win32 Build is broken w/ VC++ 6.0 SP6 s_triangle.c
(C99 syntax abuse)
Product: Mesa
Version: 6.4
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: major
Priority: P2
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
The build of Mesa on VC++ 6.0 SP6 is broken in src\mesa\swrast\s_triangle.c.
I:\mesa\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' :
illegal use of this type as an expression
../../../../include\GL/gl.h(155) : see declaration of 'GLuint'
I:\mesa\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2146: syntax error
: missing ';' before identifier 'i'
I:\mesa\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2065: 'i' :
undeclared identifier
I:\mesa\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2275: 'GLuint' :
illegal use of this type as an expression
../../../../include\GL/gl.h(155) : see declaration of 'GLuint'
I:\mesa\Mesa-6.4.1\src\mesa\swrast\s_tritemp.h(1159) : error C2146: syntax error
: missing ';' before identifier 'i'
I have traced these all to the abuse of C99 syntax, specifically in the
RENDER_SPAN() macro that is defined before one of the inclusions of
s_tritemp.h.
To fix: In any macro that defines a local variable (such as GLuint i;), always
surround the macro expansion with braces to create a sub-block. (This is at
s_triangle.c, with locations at lines 165, 216, and 916.)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev