You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2015/12/08 21:49:17 UTC
[2/2] mesos git commit: Mesos: Marked Boost as a "system" header.
Mesos: Marked Boost as a "system" header.
This instructs the compiler to ignore warnings in the Boost headers.
This is useful, because those headers often contain hard-to-silence
warnings that are not otherwise useful to display. See MESOS-3799.
Review: https://reviews.apache.org/r/40327
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f530ef96
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f530ef96
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f530ef96
Branch: refs/heads/master
Commit: f530ef964e2419736ac2dd194c3b435c8535726d
Parents: ab787d5
Author: Neil Conway <ne...@gmail.com>
Authored: Tue Dec 8 15:45:57 2015 -0500
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Tue Dec 8 15:48:09 2015 -0500
----------------------------------------------------------------------
src/Makefile.am | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/f530ef96/src/Makefile.am
----------------------------------------------------------------------
diff --git a/src/Makefile.am b/src/Makefile.am
index e96e0ec..9762f85 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -103,7 +103,11 @@ MESOS_CPPFLAGS += -I../include
MESOS_CPPFLAGS += -I../include/mesos
# Header only dependencies will be ignored for --disable-bundled.
-MESOS_CPPFLAGS += -I../$(BOOST)
+#
+# We use "-isystem" instead of "-I" to add Boost to the include search
+# path. This disables compiler warnings inside Boost headers since we
+# can't easily fix them. See MESOS-3799.
+MESOS_CPPFLAGS += -isystem ../$(BOOST)
MESOS_CPPFLAGS += -I../$(PICOJSON)
# Enable the INT64 support for PicoJson.