https://bugs.freedesktop.org/show_bug.cgi?id=91334
Bug ID: 91334
Summary: redefinition of typedef pa_packet
Product: PulseAudio
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: core
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
When building with gcc 4.4.7, this error occurs (due to a change in behaviour
in later versions of gcc, which let you redefine typedefs without an error as
long as you don't change the definition):
pulsecore/packet.c:43: error: redefinition of typedef ‘pa_packet’
pulsecore/packet.h:26: note: previous declaration of ‘pa_packet’ was here
Fix is to remove the typedef from packet.c and just define the struct:
struct pa_packet {
PA_REFCNT_DECLARE;
enum { PA_PACKET_APPENDED, PA_PACKET_DYNAMIC } type;
size_t length;
uint8_t *data;
union {
uint8_t appended[MAX_APPENDED_SIZE];
} per_type;
};
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
pulseaudio-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs