You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2015/05/05 03:21:53 UTC

mesos git commit: Fixed a compiler error for --enable-optimize builds.

Repository: mesos
Updated Branches:
  refs/heads/master e7e7c50f7 -> 322cb8b77


Fixed a compiler error for --enable-optimize builds.

Review: https://reviews.apache.org/r/33828


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/322cb8b7
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/322cb8b7
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/322cb8b7

Branch: refs/heads/master
Commit: 322cb8b77c0f27b135cae088281bc49f6a27ec01
Parents: e7e7c50
Author: Joris Van Remoortere <jo...@gmail.com>
Authored: Mon May 4 18:18:14 2015 -0700
Committer: Benjamin Mahler <be...@gmail.com>
Committed: Mon May 4 18:21:01 2015 -0700

----------------------------------------------------------------------
 configure.ac | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/322cb8b7/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 589ae97..14658f6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -562,6 +562,12 @@ if test "x$CLANG" = "xno"; then
     # GCC < 4.8 is not supported.
     AC_MSG_ERROR([GCC 4.8 or higher is required for compiling Mesos])
   fi
+
+  # Disable 'maybe-uninitialized' warning when using 'enable-optimize'
+  # flag due to MESOS-2690.
+  if test "x$enable_optimize" = "xyes"; then
+    CXXFLAGS="${CXXFLAGS} -Wno-maybe-uninitialized"
+  fi
 else # CLANG=yes
   # Check if -Wno-unused-local-typedef is needed by checking a sample
   # compilation which contains a local unused typedef.