Browse files

test: fix compiler warning

Fix the following warning by not using a static variable:

  test/test-fs-poll.c:79: warning: ‘static’ is not at beginning of declaration
  • Loading branch information...
1 parent a7cedbe commit 91faa3e688484783b720c66ce48e3d2404e0aeb7 @bnoordhuis bnoordhuis committed Nov 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test-fs-poll.c
View
4 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));

0 comments on commit 91faa3e

Please sign in to comment.