diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-08-30 12:19:00 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-08-30 12:19:00 -0700 |
commit | f447370f803192fa3a621fa4cc23108546c1c4db (patch) | |
tree | 0955e9c00de4df1963ba05d6302bd27ab27766a2 /tests/test_cpp.cc | |
parent | a25c50361a0ca55962e7f2f979a0fca515dc7f06 (diff) |
Fixed build and added Travis CI support.
Diffstat (limited to 'tests/test_cpp.cc')
-rw-r--r-- | tests/test_cpp.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 7ca5a0d..227fc96 100644 --- a/tests/test_cpp.cc +++ b/tests/test_cpp.cc @@ -12,7 +12,6 @@ #include <iostream> #include <set> -#include <type_traits> #include "upb/def.h" #include "upb/descriptor/reader.h" @@ -1062,11 +1061,15 @@ void TestMismatchedTypes() { class IntIncrementer { public: - IntIncrementer(int* x) : x_(x) { (*x_)++; } + explicit IntIncrementer(int* x) : x_(x) { (*x_)++; } ~IntIncrementer() { (*x_)--; } static void Handler(void* closure, const IntIncrementer* incrementer, - int32_t x) {} + int32_t x) { + UPB_UNUSED(closure); + UPB_UNUSED(incrementer); + UPB_UNUSED(x); + } private: int* x_; |