summaryrefslogtreecommitdiff
path: root/upb/bindings
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-05-13 16:23:35 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-05-13 17:10:14 -0700
commiteace8e32954eb6152e8df06f5a18905c235f0156 (patch)
tree21d0bc239693c8cb4b3ea898ffea1ee694f6ac2f /upb/bindings
parent51cf616dab63ba65c30cc58f0e5a61724aa4f731 (diff)
Enable Travis for Clang, and enable -Werror for all Travis builds.
Also added an extra Clang-only warning flag.
Diffstat (limited to 'upb/bindings')
-rw-r--r--upb/bindings/googlepb/bridge.cc2
-rw-r--r--upb/bindings/lua/upb/table.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/upb/bindings/googlepb/bridge.cc b/upb/bindings/googlepb/bridge.cc
index 2a2bbbf..394f7b4 100644
--- a/upb/bindings/googlepb/bridge.cc
+++ b/upb/bindings/googlepb/bridge.cc
@@ -99,7 +99,7 @@ const MessageDef* DefBuilder::GetMaybeUnfrozenMessageDef(
fields.push_back(d->field(i));
}
- for (int i = 0; i < fields.size(); i++) {
+ for (size_t i = 0; i < fields.size(); i++) {
const goog::FieldDescriptor* proto2_f = fields[i];
assert(proto2_f);
md->AddField(NewFieldDef(proto2_f, m), &status);
diff --git a/upb/bindings/lua/upb/table.c b/upb/bindings/lua/upb/table.c
index 0907f58..e574ab0 100644
--- a/upb/bindings/lua/upb/table.c
+++ b/upb/bindings/lua/upb/table.c
@@ -88,7 +88,7 @@ static void lupbtable_pushtable(lua_State *L, const upb_table *t, bool inttab) {
lupbtable_setnum(L, -1, "size_lg2", t->size_lg2);
lua_newtable(L);
- for (int i = 0; i < upb_table_size(t); i++) {
+ for (size_t i = 0; i < upb_table_size(t); i++) {
lupbtable_pushent(L, &t->entries[i], inttab, t->ctype);
lua_rawseti(L, -2, i + 1);
}
@@ -102,7 +102,7 @@ static void lupbtable_pushinttable(lua_State *L, const upb_inttable *t) {
lupbtable_setnum(L, -1, "array_count", t->array_count);
lua_newtable(L);
- for (int i = 0; i < t->array_size; i++) {
+ for (size_t i = 0; i < t->array_size; i++) {
lua_newtable(L);
if (upb_arrhas(t->array[i])) {
lupbtable_pushval(L, t->array[i], t->t.ctype);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback