Re: [libvirt] [PATCHv2] test: fix build errors with gcc 4.7.0 and -O0

2012-04-05 Thread Eric Blake
On 04/05/2012 09:20 PM, Daniel Veillard wrote: > On Thu, Apr 05, 2012 at 05:13:24PM -0600, Eric Blake wrote: >> From: Laine Stump >> >> When building on Fedora 17 (which uses gcc 4.7.0) with -O0 in CFLAGS, >> three of the tests failed to compile. >> > ACK, Thanks; pushed. -- Eric Blake ebl

Re: [libvirt] [PATCHv2] test: fix build errors with gcc 4.7.0 and -O0

2012-04-05 Thread Daniel Veillard
On Thu, Apr 05, 2012 at 05:13:24PM -0600, Eric Blake wrote: > From: Laine Stump > > When building on Fedora 17 (which uses gcc 4.7.0) with -O0 in CFLAGS, > three of the tests failed to compile. > > cputest.c and qemuxml2argvtest.c had non-static structs defined > inside the macro that was being

[libvirt] [PATCHv2] test: fix build errors with gcc 4.7.0 and -O0

2012-04-05 Thread Eric Blake
From: Laine Stump When building on Fedora 17 (which uses gcc 4.7.0) with -O0 in CFLAGS, three of the tests failed to compile. cputest.c and qemuxml2argvtest.c had non-static structs defined inside the macro that was being repeatedly invoked. Due to some so-far unidentified change in gcc, the sta