Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
c2cc61a
)
THRIFT-998 Silence g++ -Wswitch-enum warning in header
author
Roger Meier
<roger@apache.org>
Tue, 30 Nov 2010 20:23:44 +0000
(20:23 +0000)
committer
Roger Meier
<roger@apache.org>
Tue, 30 Nov 2010 20:23:44 +0000
(20:23 +0000)
Patch: Rich Salz
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1040758
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/protocol/TProtocol.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/protocol/TProtocol.h
b/lib/cpp/src/protocol/TProtocol.h
index
8e38d88
..
2a922c7
100644
(file)
--- a/
lib/cpp/src/protocol/TProtocol.h
+++ b/
lib/cpp/src/protocol/TProtocol.h
@@
-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;
}
/**