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
This commit is contained in:
parent
a7cedbe220
commit
91faa3e688
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user