From e24cced08d658222c903b36c713d2265e3e83345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Gawro=C5=84ski?= Date: Wed, 26 Jul 2023 00:58:06 +0200 Subject: googletest: ansi color fix Adds prevents from returning nullptr by choosing default color. Issue: #4321 --- googletest/src/gtest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc index 30a5cc3..e56ee1a 100644 --- a/googletest/src/gtest.cc +++ b/googletest/src/gtest.cc @@ -3228,7 +3228,8 @@ static const char* GetAnsiColorCode(GTestColor color) { case GTestColor::kYellow: return "3"; default: - return nullptr; + assert(false); + return "9" ; } } -- cgit v0.12