From 79cc92ec6f77ac019a7735fc3cb4b62aca4be4d2 Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 23 May 2016 09:46:05 +0000 Subject: [PATCH] remove warning for crippled operating systems --- socket/socket_deferaccept.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/socket/socket_deferaccept.c b/socket/socket_deferaccept.c index b0bdff4..30c0d36 100644 --- a/socket/socket_deferaccept.c +++ b/socket/socket_deferaccept.c @@ -20,5 +20,8 @@ void socket_deferaccept(int s,enum defermode mode) { memset(&afa,0,sizeof(afa)); strcpy(afa.af_name,mode==HTTPIN?"httpreader":"dataready"); setsockopt(s, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa)); +#else + (void)s; + (void)mode; #endif }