From 1774e46c372e2c1e16d4bc78f81359605e15b1b6 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 9 Apr 2020 02:00:59 +0000 Subject: Backport a -Wsign-compare fix for `ArrayAsVector` This fixes the build with newer versions of gcc. Obtained from: [google/googletest#2723](https://github.com/google/googletest/pull/2723) Submitted-by: [Johan Mabille](https://github.com/JohanMabille) --- googletest/src/gtest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index a5b4e5ac78ca1..69f25e6890e5c 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -2108,7 +2108,7 @@ static const char* const kReservedOutputTestCaseAttributes[] = { "classname", "name", "status", "time", "type_param", "value_param", "file", "line", "result", "timestamp"}; -template +template std::vector ArrayAsVector(const char* const (&array)[kSize]) { return std::vector(array, array + kSize); } -- cgit v1.3