Signed-off-by: Christophe CURIS <[email protected]>
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 40f76fb..c5d3167 100644
--- a/configure.ac
+++ b/configure.ac
@@ -153,6 +153,11 @@ AS_IF([test "x$debug" = "xyes"],
      dnl too complicated to maintain
      AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization])
      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
      AX_CFLAGS_GCC_OPTION([-Wfloat-equal])
      dnl
-- 
2.1.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to