From: Yann Collet Date: Mon, 2 Oct 2017 07:19:47 +0000 (-0700) Subject: added (void)sig to avoid compilers complaining that sig is not used. X-Git-Tag: v1.3.2~3^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e7ba3df2fc7d139b76544038691047bdddb8151;p=thirdparty%2Fzstd.git added (void)sig to avoid compilers complaining that sig is not used. --- diff --git a/programs/fileio.c b/programs/fileio.c index 6bf414e5a..cd78bbc04 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -148,7 +148,7 @@ static clock_t g_time = 0; const char* g_artefact = NULL; void INThandler(int sig) { - assert(sig==SIGINT); + assert(sig==SIGINT); (void)sig; #if !(defined(_MSC_VER) && (_MSC_VER <= 1500 /* visual studio 2008 */)) signal(sig, SIG_IGN); /* this invocation generates a buggy warning in Visual Studio 2008 */ #endif