Browse Source

Warnings mutes

Evgeny Grin (Karlson2k) 1 year ago
parent
commit
95256aecd4
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/mhd2/conn_data_process.c
  2. 2 1
      src/mhd2/events_process.c

+ 1 - 1
src/mhd2/conn_data_process.c

@@ -166,7 +166,7 @@ mhd_conn_process_recv_send_data (struct MHD_Connection *restrict c)
    * TLS read-ready connection in 'read info' state as connection
    * without space in read buffer will be marked as 'info block'. */
   if ( (! c->daemon->data_already_pending) &&
-       (! MHD_D_IS_USING_THREAD_PER_CONN_ (c->daemon)) )
+       (! mhd_D_HAS_THR_PER_CONN (c->daemon)) )
   {
     if (0 != (MHD_EVENT_LOOP_INFO_PROCESS & c->event_loop_info))
       c->daemon->data_already_pending = true;

+ 2 - 1
src/mhd2/events_process.c

@@ -1112,6 +1112,7 @@ mhd_worker_listening_only (void *cls)
 mhd_THRD_RTRN_TYPE mhd_THRD_CALL_SPEC
 mhd_worker_connection (void *cls)
 {
-  mhd_assert (! cls && "Not yet implemented");
+  (void) cls;
+  mhd_assert (0 && "Not yet implemented");
   return (mhd_THRD_RTRN_TYPE) 0;
 }