Skip to contentSkip to conversation

: Compiling with -Wshadow generates warning messages with gcc-2.95

ALSA - lib 0000474 [email protected] 1 participant 1 message Sep 21, 2004

lore
Share & tools
lore
#0 lore raw

The following bug has been RESOLVED.
======================================================================
https://bugtrack.alsa-project.org/alsa-bug/bug_view_page.php?bug_id=0000474
======================================================================

Reported By:                erikd-alsa
Assigned To:                tiwai
======================================================================
Project:                    ALSA - lib
Bug ID:                     474
Category:                   pcm - digital audio
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
======================================================================
Date Submitted:             08-30-2004 12:52 CEST
Last Modified:              09-21-2004 12:38 CEST

======================================================================
Summary: Compiling with -Wshadow generates warning messages with gcc-2.95
Description:
In file included from /usr/include/alsa/asoundlib.h:49,

                 from alsa.c:3:

/usr/include/alsa/pcm.h:535: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:536: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:537: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:538: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:539: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:1260: warning: declaration of `access' shadows global declaration
/usr/include/alsa/pcm.h:1270: warning: declaration of `access' shadows global declaration
In file included from /usr/include/alsa/asoundlib.h:52,

                 from alsa.c:3:
/usr/include/alsa/hwdep.h:142: warning: declaration of `index' shadows
global declaration
In file included from /usr/include/alsa/asoundlib.h:56,
                 from alsa.c:3:

/usr/include/alsa/seq.h:363: warning: declaration of `index' shadows global declaration

======================================================================

----------------------------------------------------------------------
tiwai - 08-31-2004 12:42 CEST
----------------------------------------------------------------------
They are quite harmless, although it'd be better to be fixed.

----------------------------------------------------------------------
tiwai - 09-21-2004 12:38 CEST
----------------------------------------------------------------------
Fixed on CVS.

Bug History
Date Modified Username Field Change
======================================================================

08-30-04 12:52 erikd-alsa     New Bug                                      
08-31-04 12:42 tiwai          Bugnote Added: 0001672                       
09-21-04 12:38 tiwai          Bugnote Added: 0001799                       
09-21-04 12:38 tiwai          Assigned To               => tiwai           
09-21-04 12:38 tiwai          Resolution               open => fixed       
09-21-04 12:38 tiwai          Status                   new => resolved     

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php