Re: [PATCH] build: fix building with '--enable-test-locking'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/18/2013 02:35 AM, Martin Kletzander wrote:
> When test-locking is enabled, CFLAGS have -Dbool=char, which makes

Huh?  bool should never be defined to char in CFLAGS; it should only be
replaced if gnulib thinks the compiler is too old.

> pipefd[bool] fail (obviously).  Forcing the subscript to be bool by
> double negation fixes the build breaker.

I don't get how this could possibly make a difference.  The 'output'
variable is declared bool, and then only ever assigned 'false' or
'true', which if bool is replaced by gnulib are still guaranteed to be 0
and 1, so using it directly as an array index is still safe.

> 
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
> 
> Notes:
>     I still can't build with '--enable-test-locking' and I'm not sure this
>     is the proper way to fix it.  Also, the code wasn't touched for
>     months, so I'm not pushing it as a build-breaker.

NACK.  I need more details about the actual failure you are seeing, but
this is not the right patch.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]