Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-741

LP:645171 - Compiler warnings when compiling oqgraph in maria-5.2

Details

    Description

      When compiling oqgraph in maria-5.2, GCC 4.4.4 reports the following warnings:

      In file included from /usr/lib/gcc/i686-redhat-linux/4.4.4/../../../../include/c++/4.4.4/backward/hash_set:60,
      from /usr/include/boost/graph/adjacency_list.hpp:25,
      from graphcore.cc:40:
      /usr/lib/gcc/i686-redhat-linux/4.4.4/../../../../include/c++/4.4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
      In file included from graphcore.cc:41:
      graphcore.cc: In function ‘void boost::breadth_first_visit(const IncidenceGraph&, typename boost::graph_traits<Graph>::vertex_descriptor, Buffer&, BFSVisitor, ColorMap) [with IncidenceGraph = boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, open_query::VertexInfo, open_query::EdgeInfo, boost::no_property, boost::listS>, Buffer = boost::queue<unsigned int, std::deque<unsigned int, std::allocator<unsigned int> > >, BFSVisitor = boost::bfs_visitor<std::pair<boost::predecessor_recorder<boost::iterator_property_map<__gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int, std::allocator<unsigned int> > >, boost::vec_adj_list_vertex_id_map<boost::property<boost::vertex_bundle_t, open_query::VertexInfo, boost::no_property>, unsigned int>, unsigned int, unsigned int&>, boost::on_tree_edge>, open_query::oqgraph_goal<false, boost::on_discover_vertex> > >, ColorMap = boost::two_bit_color_map<boost::vec_adj_list_vertex_id_map<boost::property<boost::vertex_bundle_t, open_query::VertexInfo, boost::no_property>, unsigned int> >]’:
      graphcore.cc:208: warning: dereferencing pointer ‘p’ does break strict-aliasing rules
      /usr/include/boost/optional/optional.hpp:593: note: initialized from here
      graphcore.cc:208: warning: dereferencing pointer ‘p’ does break strict-aliasing rules
      /usr/include/boost/optional/optional.hpp:593: note: initialized from here

      Attachments

        Activity

          philipstoev Philip Stoev (Inactive) created issue -

          Re: Compiler warnings when compiling oqgraph in maria-5.2
          Some more warnings:

          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::orig_indicator’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::dest_indicator’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::weight_indicator’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::seq_indicator’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::link_indicator’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::latch’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::orig’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::dest’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::weight’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::seq’
          graphcore.cc:52: warning: missing initializer for member ‘open_query::row::link’

          philipstoev Philip Stoev (Inactive) added a comment - Re: Compiler warnings when compiling oqgraph in maria-5.2 Some more warnings: graphcore.cc:52: warning: missing initializer for member ‘open_query::row::orig_indicator’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::dest_indicator’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::weight_indicator’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::seq_indicator’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::link_indicator’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::latch’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::orig’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::dest’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::weight’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::seq’ graphcore.cc:52: warning: missing initializer for member ‘open_query::row::link’

          Re: Compiler warnings when compiling oqgraph in maria-5.2
          The "missing initializer" are already fixed in the current 5.2
          In storage/oqgraph/graphcore.cc line 52:
          -static const row empty_row =

          { 0 }

          ;
          +static const row empty_row =

          { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }

          ;

          I get some of the other errors with gcc 4.3 (Ubuntu 10.04 Lucid).
          The warnings appear to be related to the Boost Graph library which we don't directly control, as far as I can see there's nothing we can do about this, directly. Will assign to Antony to review.

          arjenlentz Arjen Lentz (Inactive) added a comment - Re: Compiler warnings when compiling oqgraph in maria-5.2 The "missing initializer" are already fixed in the current 5.2 In storage/oqgraph/graphcore.cc line 52: -static const row empty_row = { 0 } ; +static const row empty_row = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } ; I get some of the other errors with gcc 4.3 (Ubuntu 10.04 Lucid). The warnings appear to be related to the Boost Graph library which we don't directly control, as far as I can see there's nothing we can do about this, directly. Will assign to Antony to review.

          Re: Compiler warnings when compiling oqgraph in maria-5.2
          For any warnings in the Boost library, please file a bug in the upstream project. Our goal is to have a warning-free MariaDB.

          philipstoev Philip Stoev (Inactive) added a comment - Re: Compiler warnings when compiling oqgraph in maria-5.2 For any warnings in the Boost library, please file a bug in the upstream project. Our goal is to have a warning-free MariaDB.

          Launchpad bug id: 645171

          ratzpo Rasmus Johansson (Inactive) added a comment - Launchpad bug id: 645171
          ratzpo Rasmus Johansson (Inactive) made changes -
          Field Original Value New Value
          Labels Launchpad
          ratzpo Rasmus Johansson (Inactive) made changes -
          Fix Version/s Maria 5.2 [ 11301 ]
          Labels Launchpad Launchpad MariaDB_5.2
          ratzpo Rasmus Johansson (Inactive) made changes -
          Key IMT-6898 MDEV-741
          Project ImportTest [ 10200 ] MariaDB Development [ 10000 ]
          Workflow jira [ 20547 ] defaullt [ 21585 ]
          Assignee Antony T Curtis [ antonytcurtis ]
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5.29 [ 11701 ]
          Fix Version/s 5.3.10 [ 11500 ]
          Fix Version/s 5.2.13 [ 10800 ]
          serg Sergei Golubchik made changes -
          Labels Launchpad MariaDB_5.2 Launchpad
          serg Sergei Golubchik made changes -
          Fix Version/s 5.2.14 [ 12101 ]
          Fix Version/s 5.2.13 [ 10800 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 5.5.29 [ 12102 ]
          Fix Version/s 5.5.28a [ 11701 ]
          serg Sergei Golubchik made changes -
          Fix Version/s 5.3.12 [ 12000 ]
          Fix Version/s 5.3.10 [ 11500 ]
          serg Sergei Golubchik made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 21585 ] MariaDB v2 [ 46354 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 46354 ] MariaDB v3 [ 64367 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 64367 ] MariaDB v4 [ 145335 ]

          People

            Unassigned Unassigned
            philipstoev Philip Stoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.