aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-08-25 11:22:52 +0200
committerChristian Grothoff <christian@grothoff.org>2019-08-25 11:22:52 +0200
commit91530f21e982350b98d9f6aa17379ad8af9f3158 (patch)
tree2d44310fa2627f4b76684be372bfde23435c9e22 /src/examples
parent8eae5667edfb303f9d15d568d78b9db468d7e2ca (diff)
downloadlibmicrohttpd-91530f21e982350b98d9f6aa17379ad8af9f3158.tar.gz
libmicrohttpd-91530f21e982350b98d9f6aa17379ad8af9f3158.zip
fix compiler warnings
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/suspend_resume_epoll.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/examples/suspend_resume_epoll.c b/src/examples/suspend_resume_epoll.c
index 903dcd81..3e0be24c 100644
--- a/src/examples/suspend_resume_epoll.c
+++ b/src/examples/suspend_resume_epoll.c
@@ -55,7 +55,9 @@ ahc_echo (void *cls,
55 struct Request* req; 55 struct Request* req;
56 struct itimerspec ts; 56 struct itimerspec ts;
57 57
58 (void) cls;
58 (void) url; /* Unused. Silence compiler warning. */ 59 (void) url; /* Unused. Silence compiler warning. */
60 (void) method;
59 (void) version; /* Unused. Silence compiler warning. */ 61 (void) version; /* Unused. Silence compiler warning. */
60 (void) upload_data; /* Unused. Silence compiler warning. */ 62 (void) upload_data; /* Unused. Silence compiler warning. */
61 (void) upload_data_size; /* Unused. Silence compiler warning. */ 63 (void) upload_data_size; /* Unused. Silence compiler warning. */
@@ -122,6 +124,9 @@ connection_done (void *cls,
122{ 124{
123 struct Request *req = *con_cls; 125 struct Request *req = *con_cls;
124 126
127 (void) cls;
128 (void) connection;
129 (void) toe;
125 if (-1 != req->timerfd) 130 if (-1 != req->timerfd)
126 if (0 != close (req->timerfd)) 131 if (0 != close (req->timerfd))
127 abort (); 132 abort ();