Skip to content

Commit

Permalink
Merge pull request twitter#133 from kevyang/132
Browse files Browse the repository at this point in the history
suppress unused parameter warning in debug_log_flush
  • Loading branch information
kevyang committed May 16, 2016
2 parents 648d19e + 47dbdba commit ad271d4
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 ad271d4

Please sign in to comment.