3
0
Fork 0
forked from mirrors/nixpkgs

qpid-cpp: fix build after #28029

When -O2 from hardening does not redefine -O3 from CMake, the build fails with:

     src/qpid/broker/SelectorExpression.cpp: In member function ‘qpid::broker::Expression* qpid::broker::Parse::orExpression(qpid::broker::Tokeniser&)’:
     src/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') {
This commit is contained in:
Orivej Desh 2018-05-31 00:12:23 +00:00
parent c97fcb4d2b
commit 5662c24302

View file

@ -35,8 +35,9 @@ let
NIX_CFLAGS_COMPILE = [
"-Wno-error=deprecated-declarations"
"-Wno-error=unused-function"
"-Wno-error=int-in-bool-context"
"-Wno-error=maybe-uninitialized"
"-Wno-error=unused-function"
];
};