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

Steve Lhomme robux4 at videolabs.io
Mon Mar 7 11:54:33 CET 2016


---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index d9cc6cc..8631038 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1017,12 +1017,12 @@ AS_IF([test "${enable_optimizations}" != "no"], [
   AS_IF([test "${ac_cv_c_fast_math}" = "no"], [VLC_RESTORE_FLAGS])
   AH_BOTTOM([
 #ifndef __FAST_MATH__
-# ifndef _MSC_VER
-#  pragma STDC FENV_ACCESS OFF
-#  pragma STDC FP_CONTRACT ON
-# else
+# ifdef _MSC_VER
 #  pragma fenv_access(off)
 #  pragma fp_contract(on)
+# elif __STDC_VERSION__ >= 199901L && !defined(__GNUC__)
+#  pragma STDC FENV_ACCESS OFF
+#  pragma STDC FP_CONTRACT ON
 # endif
 #endif
 ])
-- 
2.7.1



More information about the vlc-devel mailing list