1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-02 12:02:30 +01:00

configure: Add compiler detection on non optimal floating point constant

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
Christophe CURIS
2015-05-24 15:49:05 +02:00
committed by Carlos R. Mafra
parent bae28b2fae
commit 1df08cc492

View File

@@ -153,6 +153,11 @@ AS_IF([test "x$debug" = "xyes"],
dnl too complicated to maintain dnl too complicated to maintain
AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization]) AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization])
dnl dnl
dnl Because of C's type promotion, the compiler has to generate
dnl less optimal code when a double constant is used in a
dnl float expression
AX_CFLAGS_GCC_OPTION([-Wdouble-promotion])
dnl
dnl Floating-point comparison is not a good idea dnl Floating-point comparison is not a good idea
AX_CFLAGS_GCC_OPTION([-Wfloat-equal]) AX_CFLAGS_GCC_OPTION([-Wfloat-equal])
dnl dnl