You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jiri Daněk (Jira)" <ji...@apache.org> on 2020/10/05 10:07:00 UTC

[jira] [Created] (QPID-8476) Reorder compiler warning [-Wreorder] in examples/messaging/spout.cpp

Jiri Daněk created QPID-8476:
--------------------------------

             Summary: 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


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-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org