[ https://issues.apache.org/jira/browse/QPID-8476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311898#comment-17311898 ]
ASF subversion and git services commented on QPID-8476: ------------------------------------------------------- Commit f273d159714dcdd2217a7e59e3537261c309a91a in qpid-cpp's branch refs/heads/main from Franz Hollerer [ https://gitbox.apache.org/repos/asf?p=qpid-cpp.git;h=f273d15 ] QPID-8476: Fix order within member initializer list (#23) > Reorder compiler warning [-Wreorder] in examples/messaging/spout.cpp > -------------------------------------------------------------------- > > Key: QPID-8476 > URL: https://issues.apache.org/jira/browse/QPID-8476 > Project: Qpid > Issue Type: Bug > Components: C++ Build > Affects Versions: qpid-cpp-1.39.0 > Reporter: Jiri Daněk > Assignee: Jiri Daněk > Priority: Minor > Fix For: qpid-cpp-1.40.0 > > > Compilation prints the following warning. I am using GCC 9. > {noformat} > [ 91%] Building CXX object > examples/messaging/CMakeFiles/spout.dir/OptionParser.cpp.o > /home/jdanek/.cache/bazel/_bazel_jdanek/36e30b937da1503cce68d3840f1df2bc/sandbox/linux-sandbox/24/execroot/cli_cpp/external/qpid-cpp/examples/messaging/spout.cpp: > In constructor 'Options::Options()': > /home/jdanek/.cache/bazel/_bazel_jdanek/36e30b937da1503cce68d3840f1df2bc/sandbox/linux-sandbox/24/execroot/cli_cpp/external/qpid-cpp/examples/messaging/spout.cpp:48:9: > warning: 'Options::count' will be initialized after [-Wreorder] > 48 | int count; > | ^~~~~ > /home/jdanek/.cache/bazel/_bazel_jdanek/36e30b937da1503cce68d3840f1df2bc/sandbox/linux-sandbox/24/execroot/cli_cpp/external/qpid-cpp/examples/messaging/spout.cpp:47:10: > warning: 'bool Options::durable' [-Wreorder] > 47 | bool durable; > | ^~~~~~~ > /home/jdanek/.cache/bazel/_bazel_jdanek/36e30b937da1503cce68d3840f1df2bc/sandbox/linux-sandbox/24/execroot/cli_cpp/external/qpid-cpp/examples/messaging/spout.cpp:57:5: > warning: when initialized here [-Wreorder] > 57 | Options() > | ^~~~~~~ > {noformat} > There is a patch submitted at https://github.com/apache/qpid-cpp/pull/23 -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org