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

Steve Lhomme robux4 at videolabs.io
Mon Mar 7 14:07:46 CET 2016


--
replaces https://patches.videolan.org/patch/12557/ with C++ friendliness
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index d9cc6cc..0ca5c0a 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 defined(__STDC_VERSION__) && __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