diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-05-13 16:23:35 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-05-13 17:10:14 -0700 |
commit | eace8e32954eb6152e8df06f5a18905c235f0156 (patch) | |
tree | 21d0bc239693c8cb4b3ea898ffea1ee694f6ac2f /tests/bindings/googlepb/test_vs_proto2.cc | |
parent | 51cf616dab63ba65c30cc58f0e5a61724aa4f731 (diff) |
Enable Travis for Clang, and enable -Werror for all Travis builds.
Also added an extra Clang-only warning flag.
Diffstat (limited to 'tests/bindings/googlepb/test_vs_proto2.cc')
-rw-r--r-- | tests/bindings/googlepb/test_vs_proto2.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/bindings/googlepb/test_vs_proto2.cc b/tests/bindings/googlepb/test_vs_proto2.cc index 8e68791..06bea87 100644 --- a/tests/bindings/googlepb/test_vs_proto2.cc +++ b/tests/bindings/googlepb/test_vs_proto2.cc @@ -47,7 +47,7 @@ void compare_metadata(const google::protobuf::Descriptor* d, d->FindFieldByNumber(upb_f->number()); ASSERT(upb_f); ASSERT(proto2_f); - ASSERT(upb_f->number() == proto2_f->number()); + ASSERT(upb_f->number() == (uint32_t)proto2_f->number()); ASSERT(std::string(upb_f->name()) == proto2_f->name()); ASSERT(upb_f->descriptor_type() == static_cast<upb::FieldDef::DescriptorType>(proto2_f->type())); @@ -124,6 +124,8 @@ extern "C" { int run_tests(int argc, char *argv[]) { UPB_UNUSED(argc); UPB_UNUSED(argv); + UPB_UNUSED(message1_data); + UPB_UNUSED(message2_data); size_t len = sizeof(MESSAGE_DATA_IDENT); const char *str = (const char*)MESSAGE_DATA_IDENT; |