Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test: fix compiler warning
Browse files Browse the repository at this point in the history
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
bnoordhuis committed Nov 7, 2012
1 parent a7cedbe commit 91faa3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test-fs-poll.c
Expand Up @@ -76,7 +76,9 @@ static void poll_cb(uv_fs_poll_t* handle,
int status, int status,
const uv_statbuf_t* prev, const uv_statbuf_t* prev,
const uv_statbuf_t* curr) { 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(handle == &poll_handle);
ASSERT(uv_is_active((uv_handle_t*)handle)); ASSERT(uv_is_active((uv_handle_t*)handle));
Expand Down

0 comments on commit 91faa3e

Please sign in to comment.