You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/12/24 12:44:00 UTC
[jira] [Commented] (PROTON-2787) Compilation failure with `zig cc` (equivalent to clang 16)
[ https://issues.apache.org/jira/browse/PROTON-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17800177#comment-17800177 ]
ASF GitHub Bot commented on PROTON-2787:
----------------------------------------
jiridanek opened a new pull request, #416:
URL: https://github.com/apache/qpid-proton/pull/416
(no comment)
> 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
>
> {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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org