diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_handlers.c | 8 | ||||
-rw-r--r-- | tests/test_pipeline.c | 2 |
2 files changed, 9 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; } diff --git a/tests/test_pipeline.c b/tests/test_pipeline.c index d54d15c..7214ca5 100644 --- a/tests/test_pipeline.c +++ b/tests/test_pipeline.c @@ -108,6 +108,8 @@ static void test_realloc() { } int run_tests(int argc, char *argv[]) { + UPB_UNUSED(argc); + UPB_UNUSED(argv); test_empty(); test_only_initial(); test_with_alloc_func(); |