test: fix compilation warning
fs_event_cb_dir_multi_file_in_subdir is only used in fs_event_watch_dir_recursive test, which is only compiled in OSX and Windows.
This commit is contained in:
parent
3b0f85fd23
commit
085b877ccb
@ -140,10 +140,11 @@ static void fs_event_cb_dir_multi_file(uv_fs_event_t* handle,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__APPLE__) || defined(_WIN32)
|
||||||
static void fs_event_cb_dir_multi_file_in_subdir(uv_fs_event_t* handle,
|
static void fs_event_cb_dir_multi_file_in_subdir(uv_fs_event_t* handle,
|
||||||
const char* filename,
|
const char* filename,
|
||||||
int events,
|
int events,
|
||||||
int status) {
|
int status) {
|
||||||
fs_event_cb_called++;
|
fs_event_cb_called++;
|
||||||
ASSERT(handle == &fs_event);
|
ASSERT(handle == &fs_event);
|
||||||
ASSERT(status == 0);
|
ASSERT(status == 0);
|
||||||
@ -158,6 +159,7 @@ static void fs_event_cb_dir_multi_file_in_subdir(uv_fs_event_t* handle,
|
|||||||
uv_close((uv_handle_t*) handle, close_cb);
|
uv_close((uv_handle_t*) handle, close_cb);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char* fs_event_get_filename(int i) {
|
static const char* fs_event_get_filename(int i) {
|
||||||
snprintf(fs_event_filename,
|
snprintf(fs_event_filename,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user