From: Yang Tse Date: Fri, 12 Jun 2009 09:01:41 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: curl-7_19_6~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2ce2aa4deea21fabfc1cb6fd65a6581b41390bd;p=curl fix compiler warning --- diff --git a/tests/server/sws.c b/tests/server/sws.c index 99f188017..accf5555b 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -183,13 +183,15 @@ static const char *doc404 = "HTTP/1.1 404 Not Found\r\n" "The requested URL was not found on this server.\n" "


" SWSVERSION "
\n" "\n"; -#if defined(SIGPIPE) && defined(HAVE_SIGNAL) +#ifndef WIN32 +# if defined(SIGPIPE) && defined(HAVE_SIGNAL) static volatile int sigpipe; /* Why? It's not used */ static void sigpipe_handler(int sig) { (void)sig; /* prevent warning */ sigpipe = 1; } +# endif #endif static int ProcessRequest(struct httprequest *req)