diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-09-19 15:51:10 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-09-28 14:11:25 +0100 |
commit | 3bb579a43c09d18217a19035054817591eb8d870 (patch) | |
tree | a119cded483135cbd4ee6d32594a649429a40449 | |
parent | 6b6dd5fede7db0fafdc09f2ced89c39adc432701 (diff) | |
download | cygnal-3bb579a43c09d18217a19035054817591eb8d870.tar.gz cygnal-3bb579a43c09d18217a19035054817591eb8d870.tar.bz2 cygnal-3bb579a43c09d18217a19035054817591eb8d870.zip |
Cygwin: avoid GCC 10 error with -Werror=parentheses
../../../../src/winsup/cygwin/fhandler_socket_inet.cc: In member function 'ssize_t fhandler_socket_wsock::send_internal(_WSAMSG*, int)':
../../../../src/winsup/cygwin/fhandler_socket_inet.cc:1381:69: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
-rw-r--r-- | winsup/cygwin/fhandler_socket_inet.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket_inet.cc b/winsup/cygwin/fhandler_socket_inet.cc index 2b50671e5..71e92e341 100644 --- a/winsup/cygwin/fhandler_socket_inet.cc +++ b/winsup/cygwin/fhandler_socket_inet.cc @@ -1378,7 +1378,7 @@ fhandler_socket_wsock::send_internal (struct _WSAMSG *wsamsg, int flags) buffer which only gets partially written. */ for (DWORD in_idx = 0, in_off = 0; in_idx < wsamsg->dwBufferCount; - in_off >= wsamsg->lpBuffers[in_idx].len && (++in_idx, in_off = 0)) + in_off >= wsamsg->lpBuffers[in_idx].len && (++in_idx, (in_off = 0))) { /* Split a message into the least number of pieces to minimize the number of WsaSendTo calls. Don't split datagram messages (bad idea). |