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

2012-04-05 Thread Eric Blake
On 04/05/2012 02:31 PM, Laine Stump wrote: > 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 >

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

2012-04-05 Thread 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 stack space used by var