summaryrefslogtreecommitdiff
path: root/upb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-08-30 13:09:36 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-08-30 13:09:36 -0700
commitba87fcd84b24d16b998663b8b48b4a4d464ed66c (patch)
tree7f654e658a8a3daa0133f61b31d92bb8a6ac80ac /upb
parentf447370f803192fa3a621fa4cc23108546c1c4db (diff)
Fix in test_cpp for bad macro expansion.
Diffstat (limited to 'upb')
-rw-r--r--upb/bindings/googlepb/proto2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb/bindings/googlepb/proto2.cc b/upb/bindings/googlepb/proto2.cc
index 224e2b9..657f802 100644
--- a/upb/bindings/googlepb/proto2.cc
+++ b/upb/bindings/googlepb/proto2.cc
@@ -744,6 +744,7 @@ case goog::FieldDescriptor::cpptype: \
static T* StartOneofString(goog::Message* m,
const OneofFieldHandlerData* data,
size_t size_hint) {
+ UPB_UNUSED(size_hint);
const FieldOffset* ofs = data;
T** str = ofs->GetFieldPointer<T*>(m);
if (data->SetOneofHas(m)) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback