commit | c0b5d9065c105ae73f11615717d6f071eba3e511 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Tue Nov 30 20:23:44 2010 +0000 |
committer | Roger Meier <roger@apache.org> | Tue Nov 30 20:23:44 2010 +0000 |
tree | 042b09cc442afc353b1a6a89f90297c10ab4a86c | |
parent | c2cc61a0fad68b7c72379fa4ad0588fdf5a18644 [diff] |
THRIFT-998 Silence g++ -Wswitch-enum warning in header Patch: Rich Salz git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1040758 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h index 8e38d88..2a922c7 100644 --- a/lib/cpp/src/protocol/TProtocol.h +++ b/lib/cpp/src/protocol/TProtocol.h
@@ -266,9 +266,10 @@ result += prot.readListEnd(); return result; } - default: - return 0; + case T_STOP: case T_VOID: case T_U64: case T_UTF8: case T_UTF16: + break; } + return 0; } /**