[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343594: marked as done (xlibmesa-gl-dev: too much warnings when using 'gcc -Wshadow')



Your message dated Wed, 14 Feb 2007 00:57:09 +0100
with message-id <45D25055.8050204@ens-lyon.org>
and subject line Bug#343594,: libmesa-gl-dev: too much warnings when using 'gcc -Wshadow'
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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


--- End Message ---
--- Begin Message ---
Closing since these warnings only appear with gcc-2.95, not with gcc-3.3
or 4.1 (default in Etch).

Brice


--- End Message ---

Reply to: