diff options
author | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-07-14 22:36:31 +0000 |
---|---|---|
committer | vladlosev <vladlosev@861a406c-534a-0410-8894-cb66d6ee9925> | 2010-07-14 22:36:31 +0000 |
commit | 447ed6474deca82844b211e57503579ab1c560f0 (patch) | |
tree | 1b59366f9b80c25b0ed734dbe5d588ffc0682ec9 /src | |
parent | 3899557cb8563bb0da8f44d435bb02b2095e07fb (diff) | |
download | googletest-447ed6474deca82844b211e57503579ab1c560f0.tar.gz googletest-447ed6474deca82844b211e57503579ab1c560f0.tar.bz2 googletest-447ed6474deca82844b211e57503579ab1c560f0.zip |
Fixes warnings when built by GCC with -Wswitch-default. Original patch by Zhixu Liu (zhixu.liu@gmail.com).
Diffstat (limited to 'src')
-rw-r--r-- | src/gtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtest.cc b/src/gtest.cc index 9855f53d..a64327b9 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. |