You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/01/14 21:05:00 UTC

[09/15] git commit: Fixed warning given by clang.

Fixed warning given by clang.

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


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

Branch: refs/heads/master
Commit: 95eda5ad47c6c6db7d3d4d903f4337a8c926b4a6
Parents: a151dd9
Author: Benjamin Hindman <be...@gmail.com>
Authored: Sun Dec 29 22:52:07 2013 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Jan 14 12:00:40 2014 -0800

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/95eda5ad/3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp
index ef36f1b..97ebe81 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/gzip.hpp
@@ -8,6 +8,7 @@
 #include <string>
 
 #include "error.hpp"
+#include "stringify.hpp"
 #include "try.hpp"
 
 // Compression utilities.
@@ -38,7 +39,7 @@ inline Try<std::string> compress(
   // Verify the level is within range.
   if (!(level == Z_DEFAULT_COMPRESSION ||
       (level >= Z_NO_COMPRESSION && level <= Z_BEST_COMPRESSION))) {
-    return Error("Invalid compression level: " + level);
+    return Error("Invalid compression level: " + stringify(level));
   }
 
   z_stream_s stream;