Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 91faa3e688484783b720c66ce48e3d2404e0aeb7 1 parent a7cedbe
Ben Noordhuis bnoordhuis authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/test-fs-poll.c
4 test/test-fs-poll.c
View
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.