Bug 31959

Summary: Fails to build: invalid application of ‘sizeof’ to a void type
Product: XCB Reporter: Cyril Brulebois <kibi>
Component: LibraryAssignee: xcb mailing list dummy <xcb>
Status: RESOLVED FIXED QA Contact: xcb mailing list dummy <xcb>
Severity: normal    
Priority: medium CC: kibi, pharris
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Cyril Brulebois 2010-11-28 08:31:07 UTC
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
Comment 1 Peter Harris 2011-01-24 08:06:33 UTC
Does the patch from
http://lists.freedesktop.org/archives/xcb/2010-December/006701.html
fix the problem for you?
Comment 2 Cyril Brulebois 2011-01-24 12:40:12 UTC
It seems to build fine now, thanks.
Comment 3 Peter Harris 2011-01-27 12:44:47 UTC
Pushed as c2e023646298da05e212056fbc6b329e4dd9a100

Thanks for testing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.