# HG changeset patch # User Yuya Nishihara # Date 1467121146 -32400 # Node ID 009cc6c89d0fa6f4038064616c3bb98ec39362cc # Parent c42a3fd5c1fc5193e5f45887bfddaf05ca977fa4 chg: silence warning of unused parameter 'sig' diff -r c42a3fd5c1fc -r 009cc6c89d0f contrib/chg/chg.c --- a/contrib/chg/chg.c Wed Jun 29 22:48:32 2016 +0800 +++ b/contrib/chg/chg.c Tue Jun 28 22:39:06 2016 +0900 @@ -381,7 +381,7 @@ abortmsgerrno("failed to handle stop signal"); } -static void handlechildsignal(int sig) +static void handlechildsignal(int sig UNUSED_) { if (peerpid == 0 || pagerpid == 0) return; diff -r c42a3fd5c1fc -r 009cc6c89d0f contrib/chg/util.h --- a/contrib/chg/util.h Wed Jun 29 22:48:32 2016 +0800 +++ b/contrib/chg/util.h Tue Jun 28 22:39:06 2016 +0900 @@ -12,8 +12,10 @@ #ifdef __GNUC__ #define PRINTF_FORMAT_ __attribute__((format(printf, 1, 2))) +#define UNUSED_ __attribute__((unused)) #else #define PRINTF_FORMAT_ +#define UNUSED_ #endif void abortmsg(const char *fmt, ...) PRINTF_FORMAT_;