Skip to content

Commit

Permalink
THRIFT-998 Silence g++ -Wswitch-enum warning in header
Browse files Browse the repository at this point in the history
Patch: Rich Salz


git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1040758 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
bufferoverflow committed Nov 30, 2010
1 parent c2cc61a commit c0b5d90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cpp/src/protocol/TProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,10 @@ uint32_t skip(Protocol_& prot, TType type) {
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;
}

/**
Expand Down

0 comments on commit c0b5d90

Please sign in to comment.