Jiri Daněk created PROTON-2409:
----------------------------------
Summary: [s390x] raw_connection.c: ‘previous’ may be used
uninitialized in this function
Key: PROTON-2409
URL: https://issues.apache.org/jira/browse/PROTON-2409
Project: Qpid Proton
Issue Type: Bug
Components: proton-c
Affects Versions: proton-c-0.36.0
Reporter: Jiri Daněk
https://app.travis-ci.com/github/apache/qpid-dispatch/jobs/523467120#L821
{noformat}
[ 9%] Building C object
c/CMakeFiles/qpid-proton-proactor-objects.dir/src/proactor/raw_connection.c.o
/home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/proactor/raw_connection.c:
In function ‘pn_raw_connection_take_read_buffers’:
/home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/proactor/raw_connection.c:336:26:
error: ‘previous’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
336 | conn->rbuffers[previous-1].next = conn->rbuffer_first_empty;
| ~~~~~~~~^~
/home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/proactor/raw_connection.c:
In function ‘pn_raw_connection_take_written_buffers’:
/home/travis/build/apache/qpid-dispatch/qpid-proton/c/src/proactor/raw_connection.c:408:26:
error: ‘previous’ may be used uninitialized in this function
[-Werror=maybe-uninitialized]
408 | conn->wbuffers[previous-1].next = conn->wbuffer_first_empty;
| ~~~~~~~~^~
cc1: all warnings being treated as errors
{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]