changeset 3327:5b38e99bbfe4

* src/octave.mk: Disable some warnings for MSVC build.
author Michael Goffioul <michael.goffioul@gmail.com>
date Thu, 14 Nov 2013 11:44:25 -0500
parents 4ec93c2c211c
children ef8e004ebb93
files src/octave.mk
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/octave.mk	Thu Nov 14 11:43:54 2013 -0500
+++ b/src/octave.mk	Thu Nov 14 11:44:25 2013 -0500
@@ -49,9 +49,12 @@
   # - Skip configure test for pow and sqrt, MSVC fails to compile them
   #   because it uses intrinsics (with -O2 flag) and bump on the fake
   #   "char FUNC()" forward declaration.
+  # - Override CFLAGS and CXXFLAGS to disable some warnings.
   $(PKG)_EXTRA_CONFIGURE_OPTIONS := \
     --enable-atomic-refcount \
-    ac_cv_func_pow=yes ac_cv_func_sqrt=yes
+    ac_cv_func_pow=yes ac_cv_func_sqrt=yes \
+    CFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068' \
+    CXXFLAGS='-O2 -wd4244 -wd4003 -wd4005 -wd4068'
 else
   $(PKG)_PREFIX := '$(HOST_PREFIX)'
   $(PKG)_EXTRA_CONFIGURE_OPTIONS := \