From de8db2d6fa0cd59c0415b09295fb89bc809f1e7e Mon Sep 17 00:00:00 2001 From: vladlosev Date: Wed, 14 Jul 2010 22:36:31 +0000 Subject: Fixes warnings when built by GCC with -Wswitch-default. Original patch by Zhixu Liu (zhixu.liu@gmail.com). git-svn-id: http://googletest.googlecode.com/svn/trunk@445 861a406c-534a-0410-8894-cb66d6ee9925 --- src/gtest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gtest.cc b/src/gtest.cc index 9855f53..a64327b 100644 --- a/src/gtest.cc +++ b/src/gtest.cc @@ -2504,9 +2504,9 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) { #else return "Failure\n"; #endif + default: + return "Unknown result type"; } - - return "Unknown result type"; } // Prints a TestPartResult to a String. -- cgit v1.2.1