Browse Source

- warning fix

Andrei Pelinescu-Onciul 17 năm trước cách đây
mục cha
commit
fcc935bb69
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      tcp_main.c

+ 1 - 0
tcp_main.c

@@ -3101,6 +3101,7 @@ inline static int handle_tcpconn_ev(struct tcp_connection* tcpconn, short ev,
 	/* pass it to child, so remove it from the io watch list  and the local
 	/* pass it to child, so remove it from the io watch list  and the local
 	 *  timer */
 	 *  timer */
 #ifdef TCP_BUF_WRITE
 #ifdef TCP_BUF_WRITE
+	empty_q=0; /* warning fix */
 	if (unlikely((ev & (POLLOUT|POLLERR|POLLHUP)) &&
 	if (unlikely((ev & (POLLOUT|POLLERR|POLLHUP)) &&
 					(tcpconn->flags & F_CONN_WRITE_W))){
 					(tcpconn->flags & F_CONN_WRITE_W))){
 		if (unlikely((ev & (POLLERR|POLLHUP)) || 
 		if (unlikely((ev & (POLLERR|POLLHUP)) ||