[jira] [Commented] (PROTON-2787) Compilation failure with `zig cc` (equivalent to clang 16)

2023-12-24 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17800205#comment-17800205
 ] 

ASF GitHub Bot commented on PROTON-2787:


jiridanek merged PR #416:
URL: https://github.com/apache/qpid-proton/pull/416




> 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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2787) Compilation failure with `zig cc` (equivalent to clang 16)

2023-12-24 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17800206#comment-17800206
 ] 

ASF subversion and git services commented on PROTON-2787:
-

Commit 62f8909b5cc8e24e089be2411f1d256eb7330cbb in qpid-proton's branch 
refs/heads/main from Jiri Daněk
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=62f8909b5 ]

PROTON-2787: Resolve Clang 16 compilation warnings (#416)



> 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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (PROTON-2787) Compilation failure with `zig cc` (equivalent to clang 16)

2023-12-24 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/PROTON-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org