From 0a5fce8c78bccd9fcf3179532067fa6559415348 Mon Sep 17 00:00:00 2001 From: David Garcia Quintas Date: Fri, 18 Mar 2016 09:58:55 -0700 Subject: [PATCH] vs doesn't like some c99 features... --- src/core/compression/compression_algorithm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/compression/compression_algorithm.c b/src/core/compression/compression_algorithm.c index a76abc372f5..2810a38b68a 100644 --- a/src/core/compression/compression_algorithm.c +++ b/src/core/compression/compression_algorithm.c @@ -152,7 +152,8 @@ grpc_compression_algorithm grpc_compression_algorithm_for_level( GRPC_COMPRESS_DEFLATE}; /* intersect algos_ranking with the supported ones keeping the ranked order */ - grpc_compression_algorithm sorted_supported_algos[num_supported]; + grpc_compression_algorithm + sorted_supported_algos[GRPC_COMPRESS_ALGORITHMS_COUNT]; size_t algos_supported_idx = 0; for (size_t i = 0; i < GPR_ARRAY_SIZE(algos_ranking); i++) { const grpc_compression_algorithm alg = algos_ranking[i];