From 91faa3e688484783b720c66ce48e3d2404e0aeb7 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 7 Nov 2012 16:12:22 +0100 Subject: [PATCH] test: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warning by not using a static variable: test/test-fs-poll.c:79: warning: ‘static’ is not at beginning of declaration --- test/test-fs-poll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test-fs-poll.c b/test/test-fs-poll.c index a3dede64..20436cbe 100644 --- a/test/test-fs-poll.c +++ b/test/test-fs-poll.c @@ -76,7 +76,9 @@ static void poll_cb(uv_fs_poll_t* handle, int status, const uv_statbuf_t* prev, const uv_statbuf_t* curr) { - const static uv_statbuf_t zero_statbuf; + uv_statbuf_t zero_statbuf; + + memset(&zero_statbuf, 0, sizeof(zero_statbuf)); ASSERT(handle == &poll_handle); ASSERT(uv_is_active((uv_handle_t*)handle));