Jelajahi Sumber

Fixed compiler warnings.

silvioprog 5 tahun lalu
induk
melakukan
100cf4ae10
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      src/microhttpd/mhd_send.c

+ 8 - 0
src/microhttpd/mhd_send.c

@@ -50,6 +50,10 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
 {
 #if HAVE_MSG_MORE
   /* We use the MSG_MORE option for corking, no need for extra syscalls! */
+
+  (void) connection; /* Mute compiler warning. */
+  (void) want_cork;  /* Mute compiler warning. */
+
 #elif defined(MHD_TCP_CORK_NOPUSH)
   int ret;
 
@@ -135,6 +139,10 @@ post_cork_setsockopt (struct MHD_Connection *connection,
 {
 #if HAVE_MSG_MORE
   /* We use the MSG_MORE option for corking, no need for extra syscalls! */
+
+  (void) connection; /* Mute compiler warning. */
+  (void) want_cork;  /* Mute compiler warning. */
+
 #elif defined(MHD_TCP_CORK_NOPUSH)
   int ret;