Package: xlibmesa-gl-dev Version: 6.8.2.dfsg.1-11 Severity: minor Tags: patch hi I usually compile using 'gcc -Wall -Wshadow' ; but some includes in GL generate too many warnings, as for example /usr/X11R6/include/GL/gl.h:1427: warning: declaration of ‘j1’ shadows a global declaration /usr/include/bits/mathcalls.h:239: warning: shadowed declaration is here /usr/X11R6/include/GL/glext.h:3369: warning: declaration of ‘index’ shadows a global declaration /usr/include/string.h:304: warning: shadowed declaration is here Here is the patch: please change /usr/X11R6/include/GL/glext.h using the sed command sed 's/int index/int gl_index/' or similar; and apply the patch in attachment to /usr/X11R6/include/GL/gl.h thanks a. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (650, 'testing'), (600, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-1-k7 Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Versions of packages xlibmesa-gl-dev depends on: ii libc6-dev [libc-dev] 2.3.5-8 GNU C Library: Development Librari ii libx11-dev 6.8.2.dfsg.1-11 X Window System protocol client li ii libxext-dev 6.8.2.dfsg.1-11 X Window System miscellaneous exte ii x-dev 6.8.2.dfsg.1-11 X protocol development files ii xlibmesa-gl 6.8.2.dfsg.1-11 Mesa 3D graphics library [X.Org] xlibmesa-gl-dev recommends no packages. -- no debconf information -- Andrea Mennucc "E' un mondo difficile. Che vita intensa!" (Tonino Carotone)
--- /usr/X11R6/include/GL/gl.h.upstream 2005-12-16 13:43:23.000000000 +0100 +++ /usr/X11R6/include/GL/gl.h 2005-12-16 13:49:22.000000000 +0100 @@ -1121,10 +1121,10 @@ GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v ); -GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 ); -GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ); -GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 ); -GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 ); +GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1_, GLdouble x2, GLdouble y2 ); +GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1_, GLfloat x2, GLfloat y2 ); +GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1_, GLint x2, GLint y2 ); +GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1_, GLshort x2, GLshort y2 ); GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 ); @@ -1424,7 +1424,7 @@ GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 ); -GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 ); +GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1_, GLint j2 ); /*
Attachment:
signature.asc
Description: Digital signature