From e18848059fab99e0bae220c1c48cd3a6d2a1ad58 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Wed, 22 Jul 2015 09:35:09 +0200 Subject: [PATCH] test: fix compilation warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- test/test-fs-event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-fs-event.c b/test/test-fs-event.c index cbe4d0e2..f6c22145 100644 --- a/test/test-fs-event.c +++ b/test/test-fs-event.c @@ -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;