1
0
mirror of https://github.com/facebook/zstd.git synced 2026-01-06 11:21:19 +03:00

added (void)sig to avoid compilers complaining that sig is not used.

This commit is contained in:
Yann Collet
2017-10-02 00:19:47 -07:00
parent 82bc200f82
commit 6e7ba3df2f

View File

@@ -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