[
https://issues.apache.org/jira/browse/PROTON-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Daněk resolved PROTON-2787.
--------------------------------
Resolution: Fixed
> Compilation failure with `zig cc` (equivalent to clang 16)
> ----------------------------------------------------------
>
> Key: PROTON-2787
> URL: https://issues.apache.org/jira/browse/PROTON-2787
> Project: Qpid Proton
> Issue Type: Bug
> Components: build, proton-c
> Affects Versions: proton-c-0.39.0
> Reporter: Jiri Daněk
> Assignee: Jiri Daněk
> Priority: Major
> Fix For: proton-c-0.40.0
>
>
> {noformat}
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:251:18: error:
> using the result of an assignment as a condition without parentheses
> [-Werror,-Wparentheses]
> while (batch = pn_proactor_get(p.get())) {
> ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:251:18: note:
> place parentheses around the assignment to silence this warning
> while (batch = pn_proactor_get(p.get())) {
> ^
> ( )
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:251:18: note:
> use '==' to turn this assignment into an equality comparison
> while (batch = pn_proactor_get(p.get())) {
> ^
> ==
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:253:16: error:
> using the result of an assignment as a condition without parentheses
> [-Werror,-Wparentheses]
> while (e = pn_event_batch_next(batch)) {
> ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:253:16: note:
> place parentheses around the assignment to silence this warning
> while (e = pn_event_batch_next(batch)) {
> ^
> ( )
> /home/jdanek/repos/qpid/qpid-proton/c/tests/raw_wake_test.cpp:253:16: note:
> use '==' to turn this assignment into an equality comparison
> while (e = pn_event_batch_next(batch)) {
> ^
> ==
> 2 errors generated.
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]