[libvirt] [PATCH] build: allow building with newer glibc-headers and -O0

Christophe Fergeau cfergeau at redhat.com
Thu Jun 7 12:45:50 UTC 2012


On Thu, Jun 07, 2012 at 06:25:40AM -0600, Eric Blake wrote:
> On 06/07/2012 05:24 AM, Christophe Fergeau wrote:
> > Using a #ifdef would be more correct:
> 
> Only if you care about -Wundef, which we don't.  But I agree that if
> other projects are copying this trick to work around glibc's braindead
> choice of making this warning verbose, then those projects may have to
> consider this fact.

Yes, I've tried reusing this change in other projects (libosinfo) which
also use -Wundef which gave me this warning. I felt it was better to use
the same 'code' in libvirt and these projects, hence this email ;)
But I agree it's not needed in libvirt, I'm fine if thing are kept this
way.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120607/fe0d469f/attachment-0001.sig>


More information about the libvir-list mailing list