You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2014/02/27 19:28:58 UTC

[2/3] git commit: Fixed compile errors in lib stout when using Clang 3.5 on Ubuntu 13.10.

Fixed compile errors in lib stout when using Clang 3.5 on Ubuntu
13.10.

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


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

Branch: refs/heads/master
Commit: 66155da331d54710121e92db45358ea91aaac15d
Parents: 33aad70
Author: Bernd Mathiske <be...@mesosphere.io>
Authored: Thu Feb 27 10:16:23 2014 -0800
Committer: Vinod Kone <vi...@twitter.com>
Committed: Thu Feb 27 10:16:23 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp | 4 ++--
 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/66155da3/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
index 3eadaef..d6b070f 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp
@@ -46,7 +46,7 @@ namespace strings {
 namespace internal {
 
 Try<std::string> format(const std::string& fmt, va_list args);
-Try<std::string> format(const std::string& fmt, ...);
+Try<std::string> format(const std::string fmt, ...);
 
 template <typename T, bool b>
 struct stringify;
@@ -396,7 +396,7 @@ inline Try<std::string> format(const std::string& fmt, va_list args)
 }
 
 
-inline Try<std::string> format(const std::string& fmt, ...)
+inline Try<std::string> format(const std::string fmt, ...)
 {
   va_list args;
   va_start(args, fmt);

http://git-wip-us.apache.org/repos/asf/mesos/blob/66155da3/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
index bba6f43..20d028f 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp
@@ -724,7 +724,7 @@ inline Try<std::string> hostname()
 // Runs a shell command formatted with varargs and return the return value
 // of the command. Optionally, the output is returned via an argument.
 // TODO(vinod): Pass an istream object that can provide input to the command.
-inline Try<int> shell(std::ostream* os, const std::string& fmt, ...)
+inline Try<int> shell(std::ostream* os, const std::string fmt, ...)
 {
   va_list args;
   va_start(args, fmt);