[pulseaudio-tickets] [PulseAudio] #348: compilation warning: declaration of 'o' shadows a previous local

PulseAudio trac-noreply at tango.0pointer.de
Thu Aug 28 03:09:57 PDT 2008


#348: compilation warning: declaration of 'o' shadows a previous local
----------------------+-----------------------------------------------------
 Reporter:  rdiez     |       Owner:  lennart
     Type:  defect    |      Status:  new    
 Priority:  low       |   Milestone:         
Component:  libpulse  |    Severity:  trivial
 Keywords:            |  
----------------------+-----------------------------------------------------
 This compilation warning should be removed:

 pulsecore/object.c: In function `pa_object_new_internal':
 pulsecore/object.c:44: warning: declaration of 'o' shadows a previous
 local
 pulsecore/object.c:30: warning: shadowed declaration is here

 Proposed fix: in object.h there is this declaration:

   #define pa_object_free ((void (*) (pa_object* o)) pa_xfree)

 I would try to remove the "o". If that does not work, just rename it to
 something pretty unlikely to hit like "pa_object_free_object".

-- 
Ticket URL: <http://pulseaudio.org/ticket/348>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list