-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building fails at warning about parentheses: #671
Comments
For anybody else running into this issue, I think this should fix it. I bet the author will have an even better solution. diff --git a/usrsctplib/netinet/sctp_output.c b/usrsctplib/netinet/sctp_output.c
index 7f79600..4d25c0e 100755
--- a/usrsctplib/netinet/sctp_output.c
+++ b/usrsctplib/netinet/sctp_output.c
@@ -9015,7 +9015,8 @@ again_one_more_time:
* flight size since this little guy
* is a control only packet.
*/
- use_zero_crc = asoc->zero_checksum = 2;
+ asoc->zero_checksum = 2;
+ use_zero_crc = 2;
if (asconf) {
sctp_timer_start(SCTP_TIMER_TYPE_ASCONF, inp, stcb, net);
use_zero_crc = false; |
Looks like it's failing on their own CI via GitHub actions as well (we noticed it via a CI we have that involves usrsctp). @tuexen any chance this can be fixed as @hboetes suggested? Or would you rather one of us prepare a PR with the fix? |
use_zero_crc = asoc->zero_checksum = 2; |
Temp. workaround as described above by @hboetes : |
@LeaTaka well, that really depends on what the original meaning of the commit was: was it a double assignment, as @hboetes assumed, or was it a "set this variable to 1 only if this other value is equal to 2" as @kschoi93 interpreted it instead? Without more context from the usrsctp developers, I'm not sure what patch makes more sense (since I'm not that familiar with the code internals). |
Closed with f9f9502 |
With the latest code from git I get the error below on Ubuntu 22.04, whilst using these commands to start the build
The text was updated successfully, but these errors were encountered: