summaryrefslogtreecommitdiff
path: root/tests/test_handlers.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2013-05-28 15:26:44 -0700
committerJosh Haberman <jhaberman@gmail.com>2013-05-28 15:26:44 -0700
commit228872a5c68938c56eb9d4ecd2413865b5277fe1 (patch)
treec603c149e99b437fab018877d29289c0a0ff7aeb /tests/test_handlers.c
parentbada1e94f472e7507a97e7565369841b3d25c9b0 (diff)
Fixes to compile on GCC 4.2, as shipped with XCode.
Diffstat (limited to 'tests/test_handlers.c')
-rw-r--r--tests/test_handlers.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_handlers.c b/tests/test_handlers.c
index fb0564a..36881fe 100644
--- a/tests/test_handlers.c
+++ b/tests/test_handlers.c
@@ -11,7 +11,11 @@
#include <stdlib.h>
#include <string.h>
-static bool startmsg(void *c, const void *hd) { return true; }
+static bool startmsg(void *c, const void *hd) {
+ UPB_UNUSED(c);
+ UPB_UNUSED(hd);
+ return true;
+}
static void test_error() {
upb_handlers *h = upb_handlers_new(GOOGLE_PROTOBUF_DESCRIPTORPROTO, NULL, &h);
@@ -33,6 +37,8 @@ static void test_error() {
}
int run_tests(int argc, char *argv[]) {
+ UPB_UNUSED(argc);
+ UPB_UNUSED(argv);
test_error();
return 0;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback