On 09/11/2012 02:31 PM, Blue Swirl wrote: > On Mon, Sep 10, 2012 at 8:26 AM, Wenchao Xia <xiaw...@linux.vnet.ibm.com> > wrote: >> This patch contains type and defines used in APIs, one file for public >> usage >> by user, one for libqblock internal usage. >>
>> + >> +#if __GNUC__ >= 4 > > #if defined(__GNUC__) && __GNUC__ ... Seriously? We require a C99-compliant compiler, which is required to treat the more compact version identically (all undefined names evaluate to 0 in the preprocessor), and HACKING doesn't mandate that we spell out a defined-ness check first. Okay, so configure adds -Wundef to the set of CFLAGS, but I fail to see why we want -Wundef (that's an anachronistic warning, only there to help you if you are writing code portable to K&R). -- Eric Blake ebl...@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature