[ 
https://issues.apache.org/jira/browse/QPID-7927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arnaud Lacombe updated QPID-7927:
---------------------------------
    Description: Attempting to build on Fedora 26. Some of the warning concern 
legitimate codepath ending up in uinitialized variables.  (was: Attempting to 
build on Fedora 26. Some of the warning concern legitimate codepath ending up 
in uinitialized variables.

Except from a parallel build:

In file included from /qpid/broker/SelectorToken.cpp:22:0:
/qpid/broker/SelectorToken.h: In member function 'const qpid::broker::Token& 
qpid::broker::Tokeniser::nextToken()':
/qpid/broker/SelectorToken.h:67:8: error: 
'<anonymous>.qpid::broker::Token::type' may be used uninitialized in this 
function [-Werror=maybe-uninitialized]
 struct Token {
        ^~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/qpidbroker.dir/build.make:3255: 
src/CMakeFiles/qpidbroker.dir/qpid/broker/SelectorToken.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/qpid/broker/SelectorExpression.cpp: In member function 
'qpid::broker::Expression* qpid::broker::Parse::parseExactNumeric(const 
qpid::broker::Token&, bool)':
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp: In member function 
'qpid::broker::Expression* 
qpid::broker::Parse::orExpression(qpid::broker::Tokeniser&)':
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/Selector.cpp: In member function 'const qpid::broker::Value 
qpid::broker::MessageSelectorEnv::specialValue(const string&) const':
/qpid/broker/Selector.cpp:169:11: error: 'v' may be used uninitialized in this 
function [-Werror=maybe-uninitialized]
         v = Value();
         ~~^~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [src/CMakeFiles/qpidbroker.dir/build.make:3207: 
src/CMakeFiles/qpidbroker.dir/qpid/broker/Selector.cpp.o] Error 1
/qpid/broker/SelectorExpression.cpp: In member function 
'qpid::broker::Expression* 
qpid::broker::Parse::unaryArithExpression(qpid::broker::Tokeniser&)':
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {
/qpid/broker/SelectorExpression.cpp:1041:13: error: '*((void*)& s +17)' may be 
used uninitialized in this function [-Werror=maybe-uninitialized]
     if (s[1]=='b' || s[1]=='B') {)

> Build fail on Fedora 26
> -----------------------
>
>                 Key: QPID-7927
>                 URL: https://issues.apache.org/jira/browse/QPID-7927
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Build
>            Reporter: Arnaud Lacombe
>         Attachments: errors.txt
>
>
> Attempting to build on Fedora 26. Some of the warning concern legitimate 
> codepath ending up in uinitialized variables.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to