From 085b877ccbc5ccfc1416c5aadfd9d845f1cef5cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 15 Jul 2015 19:32:38 +0200 Subject: [PATCH] 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. --- test/test-fs-event.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/test-fs-event.c b/test/test-fs-event.c index 178ada85..cbe4d0e2 100644 --- a/test/test-fs-event.c +++ b/test/test-fs-event.c @@ -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, - const char* filename, - int events, - int status) { + const char* filename, + int events, + int status) { fs_event_cb_called++; ASSERT(handle == &fs_event); 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); } } +#endif static const char* fs_event_get_filename(int i) { snprintf(fs_event_filename,