summaryrefslogtreecommitdiff
path: root/upb/table.h
diff options
context:
space:
mode:
authorJosh Haberman <haberman@google.com>2013-05-25 10:26:59 -0700
committerJosh Haberman <haberman@google.com>2013-05-25 10:26:59 -0700
commit90bb4246c34580eb6c8a5a41a4e19fcd5f334f09 (patch)
treec0a5fedd4633dcaf1e975adc2edb34332a5dd686 /upb/table.h
parentcfdb9907cb87d15eaab72ceefbfa42fd7a4c3127 (diff)
Synced with Google-internal development.
C++ handlers are now type-safe; SinkFrame is gone. Various other changes.
Diffstat (limited to 'upb/table.h')
-rw-r--r--upb/table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/upb/table.h b/upb/table.h
index 2b4c80c..f96dee9 100644
--- a/upb/table.h
+++ b/upb/table.h
@@ -164,6 +164,7 @@ void upb_inttable_compact(upb_inttable *t);
// A special-case inlinable version of the lookup routine for 32-bit integers.
UPB_INLINE bool upb_inttable_lookup32(const upb_inttable *t, uint32_t key,
upb_value *v) {
+ *v = upb_value_int32(0); // Silence compiler warnings.
if (key < t->array_size) {
_upb_value arrval = t->array[key];
if (upb_arrhas(arrval)) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback