Skip to content

Commit 0f58a90

Browse files
WiFiServer.cpp: Fix warning (#7755)
* fix warning as below: ...\libraries\ESP8266WiFi\src\WiFiServer.cpp: In member function 'WiFiClient WiFiServer::available(byte*)': ...\libraries\ESP8266WiFi\src\WiFiServer.cpp:120:55: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 120 | tcp_backlog_accepted(_unclaimed->getPCB()); | ^
1 parent 4566400 commit 0f58a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/ESP8266WiFi/src/WiFiServer.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,10 @@ WiFiClient WiFiServer::available(byte* status) {
115115
WiFiClient result(_unclaimed);
116116

117117
// pcb can be null when peer has already closed the connection
118-
if (_unclaimed->getPCB())
118+
if (_unclaimed->getPCB()) {
119119
// give permission to lwIP to accept one more peer
120120
tcp_backlog_accepted(_unclaimed->getPCB());
121+
}
121122

122123
_unclaimed = _unclaimed->next();
123124
result.setNoDelay(getNoDelay());

0 commit comments

Comments
 (0)