Silence warning about unused arg.

This commit is contained in:
Emil Mikulic 2014-03-14 22:45:39 +11:00
parent 583ff7ce10
commit a8bc378777
1 changed files with 7 additions and 1 deletions

View File

@ -91,6 +91,12 @@ static const int debug = 1;
# endif
#endif
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
# define unused __attribute__((__unused__))
#else
# define unused
#endif
/* [->] borrowed from FreeBSD's src/sys/sys/systm.h,v 1.276.2.7.4.1 */
#ifndef CTASSERT /* Allow lint to override */
# define CTASSERT(x) _CTASSERT(x, __LINE__)
@ -2462,7 +2468,7 @@ static void pidfile_create(void) {
/* [<-] end of pidfile helpers. */
/* Close all sockets and FILEs and exit. */
static void stop_running(int sig) {
static void stop_running(int sig unused) {
running = 0;
}