From 47dbdba3676e9fb12b823eae0eb6722b5dc7d9af Mon Sep 17 00:00:00 2001 From: Kevin Yang Date: Mon, 16 May 2016 14:50:50 -0700 Subject: [PATCH] suppress unused parameter warning in debug_log_flush --- src/cc_debug.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cc_debug.c b/src/cc_debug.c index 7aa97dfe2..7c766260b 100644 --- a/src/cc_debug.c +++ b/src/cc_debug.c @@ -105,6 +105,12 @@ _logrotate(int signo) void debug_log_flush(void *arg) { + /* + * arg is unused but necessary for debug_log_flush to be used in conjunction + * with cc_timer and cc_wheel facilities, since to be inserted into a timing + * wheel the function must have the type signature of timeout_cb_fn. + */ + (void)arg; log_flush(dlog->logger); }