[
https://issues.apache.org/jira/browse/QPID-8476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiri Daněk resolved QPID-8476.
------------------------------
Fix Version/s: qpid-cpp-1.40.0
Resolution: Fixed
> 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: [email protected]
For additional commands, e-mail: [email protected]