[pulseaudio-tickets] [Bug 91334] New: redefinition of typedef pa_packet

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 13 22:06:40 PDT 2015


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: pulseaudio-bugs at lists.freedesktop.org
          Reporter: blahblah676 at gmail.com
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150714/d83900d3/attachment.html>


More information about the pulseaudio-bugs mailing list