From: Jason Dillaman Date: Thu, 18 Oct 2018 18:07:36 +0000 (-0400) Subject: include/types: fixed compile warning for signed/unsigned comparison X-Git-Tag: v14.0.1^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=abba0913528d5fa107497d24ddd3591dd93b808c;p=ceph.git include/types: fixed compile warning for signed/unsigned comparison Signed-off-by: Jason Dillaman --- diff --git a/src/include/types.h b/src/include/types.h index 73123bc9733f..8103cabbb365 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -158,7 +158,7 @@ inline std::ostream& operator<<(std::ostream& out, const std::deque& v) template inline std::ostream& operator<<(std::ostream& out, const std::tuple &t) { - auto f = [n = sizeof...(Ts), i = 0, &out](const auto& e) mutable { + auto f = [n = sizeof...(Ts), i = 0U, &out](const auto& e) mutable { out << e; if (++i != n) out << ",";