aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar apolcyn <apolcyn@google.com>2017-06-15 09:14:38 -0700
committerGravatar GitHub <noreply@github.com>2017-06-15 09:14:38 -0700
commitc1ab8f60658cec1d4e4dd608108039efef0fe5ea (patch)
tree2bd2b8df41d270970b49564c9b3a31555fb3c667 /test
parentc1e1e1b72006a84f581e55c7c19829aeba04db75 (diff)
parent78b092aa6b062cfd8b2f203049f298b26fec9210 (diff)
Merge pull request #11507 from apolcyn/fix_minimal_stack_is_minimal
Fix varargs compiler warning in a test
Diffstat (limited to 'test')
-rw-r--r--test/core/channel/minimal_stack_is_minimal_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/channel/minimal_stack_is_minimal_test.c b/test/core/channel/minimal_stack_is_minimal_test.c
index 7afcaa555c..c99b54c6ac 100644
--- a/test/core/channel/minimal_stack_is_minimal_test.c
+++ b/test/core/channel/minimal_stack_is_minimal_test.c
@@ -44,7 +44,7 @@
// use CHECK_STACK instead
static int check_stack(const char *file, int line, const char *transport_name,
grpc_channel_args *init_args,
- grpc_channel_stack_type channel_stack_type, ...);
+ unsigned channel_stack_type, ...);
// arguments: const char *transport_name - the name of the transport type to
// simulate
@@ -111,7 +111,7 @@ int main(int argc, char **argv) {
static int check_stack(const char *file, int line, const char *transport_name,
grpc_channel_args *init_args,
- grpc_channel_stack_type channel_stack_type, ...) {
+ unsigned channel_stack_type, ...) {
// create dummy channel stack
grpc_channel_stack_builder *builder = grpc_channel_stack_builder_create();
grpc_transport_vtable fake_transport_vtable = {.name = transport_name};
@@ -125,8 +125,8 @@ static int check_stack(const char *file, int line, const char *transport_name,
grpc_exec_ctx exec_ctx = GRPC_EXEC_CTX_INIT;
grpc_channel_stack_builder_set_channel_arguments(&exec_ctx, builder,
channel_args);
- GPR_ASSERT(
- grpc_channel_init_create_stack(&exec_ctx, builder, channel_stack_type));
+ GPR_ASSERT(grpc_channel_init_create_stack(
+ &exec_ctx, builder, (grpc_channel_stack_type)channel_stack_type));
grpc_exec_ctx_finish(&exec_ctx);
}