aboutsummaryrefslogtreecommitdiff
path: root/utils/unittest/googletest/gtest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'utils/unittest/googletest/gtest.cc')
-rw-r--r--utils/unittest/googletest/gtest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/unittest/googletest/gtest.cc b/utils/unittest/googletest/gtest.cc
index 76244974115e..3fdff0a9a355 100644
--- a/utils/unittest/googletest/gtest.cc
+++ b/utils/unittest/googletest/gtest.cc
@@ -2480,9 +2480,10 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) {
#else
return "Failure\n";
#endif
- default:
- return "Unknown result type";
}
+
+ // All cases return, so this is unreachable but GCC doesn't know it
+ abort();
}
// Prints a TestPartResult to a String.