Repository: mesos Updated Branches: refs/heads/master fcd163ffc -> 87611dda4
Added a NOTE regarding undefined behavior of 'va_start'. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/87611dda Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/87611dda Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/87611dda Branch: refs/heads/master Commit: 87611dda43bdf9c443a54882f2ec15021a14daef Parents: fcd163f Author: Michael Park <[email protected]> Authored: Mon Aug 10 01:47:42 2015 -0400 Committer: Michael Park <[email protected]> Committed: Mon Aug 10 01:49:42 2015 -0400 ---------------------------------------------------------------------- 3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/87611dda/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 9372948..1cf6dd1 100644 --- a/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp +++ b/3rdparty/libprocess/3rdparty/stout/include/stout/format.hpp @@ -79,6 +79,9 @@ inline Try<std::string> format(const std::string& fmt, va_list args) } +// NOTE: 'fmt' cannot be 'const std::string&' because passing an +// argument of reference type as the second argument of 'va_start' +// results in undefined behavior. inline Try<std::string> format(const std::string fmt, ...) { va_list args;
