mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
fix compiler warning
This commit is contained in:
parent
90c9fd55fc
commit
c2ce2aa4de
@ -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"
|
||||
"<P><HR><ADDRESS>" SWSVERSION "</ADDRESS>\n" "</BODY></HTML>\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)
|
||||
|
Loading…
Reference in New Issue
Block a user