Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
suppress unused parameter warning in debug_log_flush
Browse files Browse the repository at this point in the history
  • Loading branch information
kevyang committed May 16, 2016
1 parent 05c6e1e commit 47dbdba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cc_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 47dbdba

Please sign in to comment.