From db83ffe3b4db5c66cc888e67ad26188bc4fdb07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 10 Aug 2016 22:42:11 +0100 Subject: [PATCH] win: fix compilation warning -Wdeclaration-after-statement PR-URL: https://github.com/libuv/libuv/pull/990 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- src/win/async.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/async.c b/src/win/async.c index 16a1e109..eade3f2f 100644 --- a/src/win/async.c +++ b/src/win/async.c @@ -69,12 +69,12 @@ int uv_async_send(uv_async_t* handle) { void uv_process_async_wakeup_req(uv_loop_t* loop, uv_req_t* req) { - assert(req->type == UV_WAKEUP); - QUEUE queue; QUEUE* q; uv_async_t* h; + assert(req->type == UV_WAKEUP); + QUEUE_MOVE(&loop->async_handles, &queue); while (!QUEUE_EMPTY(&queue)) { q = QUEUE_HEAD(&queue);