test: fix compilation warning
file_prefix_in_subdir is only used in Windows and OSX. Fixes the following warning, which shows up with Clang: test/test-fs-event.c:40:19: warning: unused variable 'file_prefix_in_subdir' [-Wunused-const-variable] static const char file_prefix_in_subdir[] = "subdir"; PR-URL: https://github.com/libuv/libuv/pull/450 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This commit is contained in:
parent
01bbf6fb1c
commit
e18848059f
@ -37,7 +37,9 @@
|
||||
|
||||
static uv_fs_event_t fs_event;
|
||||
static const char file_prefix[] = "fsevent-";
|
||||
#if defined(__APPLE__) || defined(_WIN32)
|
||||
static const char file_prefix_in_subdir[] = "subdir";
|
||||
#endif
|
||||
static uv_timer_t timer;
|
||||
static int timer_cb_called;
|
||||
static int close_cb_called;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user