mirror of
https://github.com/curl/curl.git
synced 2026-07-30 18:28:08 +03:00
avoid another warning
```
/Users/runner/work/curl/curl/lib/socketpair.c:329:15: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if((err == SOCKEWOULDBLOCK)
~~~~^~~~~~~~~~~~~~~~~~
/Users/runner/work/curl/curl/lib/socketpair.c:329:15: note: remove extraneous parentheses around the comparison to silence this warning
if((err == SOCKEWOULDBLOCK)
~ ^ ~
/Users/runner/work/curl/curl/lib/socketpair.c:329:15: note: use '=' to turn this equality comparison into an assignment
if((err == SOCKEWOULDBLOCK)
^~
=
/Users/runner/work/curl/curl/lib/socketpair.c:359:21: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if((SOCKERRNO == SOCKEWOULDBLOCK)
~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/Users/runner/work/curl/curl/lib/socketpair.c:359:21: note: remove extraneous parentheses around the comparison to silence this warning
if((SOCKERRNO == SOCKEWOULDBLOCK)
~ ^ ~
/Users/runner/work/curl/curl/lib/socketpair.c:359:21: note: use '=' to turn this equality comparison into an assignment
if((SOCKERRNO == SOCKEWOULDBLOCK)
^~
=
2 errors generated.
```
https://github.com/curl/curl/actions/runs/27107980068/job/80000462156?pr=21893
This commit is contained in:
parent
935c7245de
commit
ee0dc8353d
1 changed files with 4 additions and 4 deletions
|
|
@ -326,9 +326,9 @@ int Curl_wakeup_signal(curl_socket_t socks[2])
|
|||
#else
|
||||
if(SOCKEINTR == err)
|
||||
continue;
|
||||
if((err == SOCKEWOULDBLOCK)
|
||||
if(err == SOCKEWOULDBLOCK
|
||||
#if EAGAIN != SOCKEWOULDBLOCK
|
||||
|| (err == EAGAIN)
|
||||
|| err == EAGAIN
|
||||
#endif
|
||||
)
|
||||
err = 0; /* wakeup is already ongoing */
|
||||
|
|
@ -356,9 +356,9 @@ CURLcode Curl_wakeup_consume(curl_socket_t socks[2], bool all)
|
|||
#else
|
||||
if(SOCKEINTR == SOCKERRNO)
|
||||
continue;
|
||||
if((SOCKERRNO == SOCKEWOULDBLOCK)
|
||||
if(SOCKERRNO == SOCKEWOULDBLOCK
|
||||
#if EAGAIN != SOCKEWOULDBLOCK
|
||||
|| (SOCKERRNO == EAGAIN)
|
||||
|| SOCKERRNO == EAGAIN
|
||||
#endif
|
||||
)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue