Ticket #348 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

compilation warning: declaration of 'o' shadows a previous local

Reported by: rdiez Owned by: lennart
Milestone: 0.9.12 Component: libpulse
Keywords: Cc:

Description

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".

Change History

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

Fixed a while back in git.

Changed 3 years ago by lennart

  • milestone set to 0.9.12
Note: See TracTickets for help on using tickets.