[Xcb] [Bug 31959] New: Fails to build: invalid application of ‘sizeof’ to a void type

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Nov 28 08:31:07 PST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31959

           Summary: Fails to build: invalid application of ‘sizeof’ to a
                    void type
           Product: XCB
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: kibi at debian.org
         QAContact: xcb at lists.freedesktop.org


Playing around with CFLAGS="-Wall -Werror", I hit the following warning, from
the -pedantic flag set by configure.ac, promoted to an error:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Wall -pedantic -Wpointer-arith
-Wstrict-prototypes -Wmissing-declarations -Wnested-externs -Wall -Werror -MT
dri2.lo -MD -MP -MF .deps/dri2.Tpo -c dri2.c  -fPIC -DPIC -o .libs/dri2.o
cc1: warnings being treated as errors
dri2.c: In function ‘xcb_dri2_connect_alignment_pad’:
dri2.c:332: error: invalid application of ‘sizeof’ to a void type
dri2.c:332: error: invalid application of ‘sizeof’ to a void type
make[2]: *** [dri2.lo] Error 1

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Xcb mailing list