[vlc-devel] [PATCH] configure: fix compiler warning when using --enable-debug with --disable-optimizations

Steve Lhomme robux4 at videolabs.io
Fri Feb 26 09:29:25 CET 2016


---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index cd7ccbb..0624952 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1016,7 +1016,7 @@ AS_IF([test "${enable_optimizations}" != "no"], [
   ])
   AS_IF([test "${ac_cv_c_fast_math}" = "no"], [VLC_RESTORE_FLAGS])
   AH_BOTTOM([
-#ifndef __FAST_MATH__
+#if !defined(__FAST_MATH__) && defined(NDEBUG)
 # ifndef _MSC_VER
 #  pragma STDC FENV_ACCESS OFF
 #  pragma STDC FP_CONTRACT ON
-- 
2.6.1.windows.1



More information about the vlc-devel mailing list