summaryrefslogtreecommitdiff
path: root/tests/test_cpp.cc
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2014-08-30 12:19:00 -0700
committerJosh Haberman <jhaberman@gmail.com>2014-08-30 12:19:00 -0700
commitf447370f803192fa3a621fa4cc23108546c1c4db (patch)
tree0955e9c00de4df1963ba05d6302bd27ab27766a2 /tests/test_cpp.cc
parenta25c50361a0ca55962e7f2f979a0fca515dc7f06 (diff)
Fixed build and added Travis CI support.
Diffstat (limited to 'tests/test_cpp.cc')
-rw-r--r--tests/test_cpp.cc9
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_;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback