You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2010/11/30 21:23:45 UTC
svn commit: r1040758 - /thrift/trunk/lib/cpp/src/protocol/TProtocol.h
Author: roger
Date: Tue Nov 30 20:23:44 2010
New Revision: 1040758
URL: http://svn.apache.org/viewvc?rev=1040758&view=rev
Log:
THRIFT-998 Silence g++ -Wswitch-enum warning in header
Patch: Rich Salz
Modified:
thrift/trunk/lib/cpp/src/protocol/TProtocol.h
Modified: thrift/trunk/lib/cpp/src/protocol/TProtocol.h
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/protocol/TProtocol.h?rev=1040758&r1=1040757&r2=1040758&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/protocol/TProtocol.h (original)
+++ thrift/trunk/lib/cpp/src/protocol/TProtocol.h Tue Nov 30 20:23:44 2010
@@ -266,9 +266,10 @@ uint32_t skip(Protocol_& prot, TType typ
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;
}
/**