From aabf1c2dd166d80fd84c4349f1c93fc5d5f5a1f9 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 17 Jun 2016 16:07:15 +0300 Subject: [PATCH] test/http: don't mix declarations and code (fixes -Wdeclaration-after-statement) --- test/regress_http.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/regress_http.c b/test/regress_http.c index a7c06b9d..2b77c07f 100644 --- a/test/regress_http.c +++ b/test/regress_http.c @@ -1389,9 +1389,8 @@ http_cancel_test(void *arg) struct event_base *inactive_base = NULL; struct evhttp_connection **evcons = NULL; - enum http_cancel_test_type type; - type = (enum http_cancel_test_type)data->setup_data; - + enum http_cancel_test_type type = + (enum http_cancel_test_type)data->setup_data; struct evhttp *http = http_setup(&port, data->base, 0); if (type & BY_HOST) { -- 2.50.1