Skip to contentSkip to conversation

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

ALSA - lib 0000474 [email protected] 1 participant 1 message Nov 9, 2004

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=474>
======================================================================

Reported By:                erikd-alsa
Assigned To:                tiwai
======================================================================
Project:                    ALSA - lib
Issue ID:                   474
Category:                   pcm - digital audio
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             08-30-2004 12:52 CEST
Last Modified:              11-09-2004 16:34 CET

======================================================================
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-04 12:42
----------------------------------------------------------------------
They are quite harmless, although it'd be better to be fixed.

----------------------------------------------------------------------
tiwai - 09-21-04 12:38
----------------------------------------------------------------------
Fixed on CVS.

Issue History
Date Modified Username Field Change
======================================================================

08-30-04 12:52 erikd-alsa     New Issue                                    
08-31-04 12:42 tiwai          Note Added: 0001672                          
09-21-04 12:38 tiwai          Status                   new => resolved     
09-21-04 12:38 tiwai          Resolution               open => fixed       
09-21-04 12:38 tiwai          Assigned To               => tiwai           
09-21-04 12:38 tiwai          Note Added: 0001799                          
11-09-04 16:34 tiwai          Status                   resolved => closed  

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

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click