[libvirt] [PATCH] m4: workaround clang/glibc problem with isnan()

Pavel Hrdina phrdina at redhat.com
Fri Aug 11 16:46:07 UTC 2017


On Fri, Aug 11, 2017 at 05:25:32PM +0100, Daniel P. Berrange wrote:
> When building libvirt with clang we get bogus warnings about
> 'double' being promoted to 'long double' when calling isnan().
> 
>   https://bugzilla.redhat.com/show_bug.cgi?id=1472437
> 
> Detect this broken isnan() / compiler combination and disable
> the -Wdouble-promotion flag.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  m4/virt-compile-warnings.m4 | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)

Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170811/2b0f7767/attachment-0001.sig>


More information about the libvir-list mailing list