Bug 31959 - Fails to build: invalid application of ‘sizeof’ to a void type
Summary: Fails to build: invalid application of ‘sizeof’ to a void type
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xcb mailing list dummy
QA Contact: xcb mailing list dummy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 08:31 UTC by Cyril Brulebois
Modified: 2011-01-27 12:44 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.