...
netinet/sctp_output.c: In function 'sctp_med_chunk_output':
netinet/sctp_output.c:9023:6: error: suggest parentheses around assignment used as truth value [-Werror=parentheses]
9023 | use_zero_crc = asoc->zero_checksum = 2;
| ^~~~
cc1: all warnings being treated as errors
make[1]: [Makefile:719: netinet/libusrsctp_la-sctp_output.lo] Error 1
make[1]: Leaving directory '/home/usrsctp/usrsctp/usrsctplib'
make: [Makefile:409: all-recursive] Error 1
$ vi usrsctplib/netinet/sctp_output.c
9023 G
use_zero_crc = asoc->zero_checksum = 2;
if (asconf) {
sctp_timer_start(SCTP_TIMER_TYPE_ASCONF, inp, stcb, net);
use_zero_crc = false;
/*
* do NOT clear the asconf
* flag as it is used to do
* appropriate source address
* selection.
*/
}
Error when make in ubuntu 20.04 version
... netinet/sctp_output.c: In function 'sctp_med_chunk_output': netinet/sctp_output.c:9023:6: error: suggest parentheses around assignment used as truth value [-Werror=parentheses] 9023 | use_zero_crc = asoc->zero_checksum = 2; | ^
~~~ cc1: all warnings being treated as errors make[1]: [Makefile:719: netinet/libusrsctp_la-sctp_output.lo] Error 1 make[1]: Leaving directory '/home/usrsctp/usrsctp/usrsctplib' make: [Makefile:409: all-recursive] Error 1edit code
use_zero_crc = asoc->zero_checksum = 2; -> use_zero_crc = asoc->zero_checksum == 2;
I do not speak English well. And this is the first issue registration.
An error occurred when building using make, and it seems to need to be fixed, so I uploaded it to the issue registration.