<?xml version="1.0" encoding="utf-8"?>
<launchpad-bug id="645171">
  <date_last_updated>2010-10-22 17:34:50.955007+00:00</date_last_updated>
  <api_links>
    <bug_api_link>https://api.launchpad.net/1.0/bugs/645171</bug_api_link>
    <bug_owner_link>https://api.launchpad.net/1.0/~pstoev-askmonty</bug_owner_link>
    <milestone_link>https://api.launchpad.net/1.0/maria/+milestone/5.2</milestone_link>
    <linked_branches_collection_link>https://api.launchpad.net/1.0/bugs/645171/linked_branches</linked_branches_collection_link>
    <activity_link>https://api.launchpad.net/1.0/bugs/645171/activity</activity_link>
  </api_links>
  <bug_web_link>https://bugs.launchpad.net/bugs/645171</bug_web_link>
  <owner>Philip Stoev</owner>
  <assignee>Antony T Curtis</assignee>
  <milestone_title>Maria 5.2</milestone_title>
  <duplicate_link></duplicate_link>
  <duplicate_bug_id></duplicate_bug_id>
  <title>Compiler warnings when compiling oqgraph in maria-5.2</title>
  <status>Opinion</status>
  <importance>Low</importance>
  <created>2010-09-22 12:45:16.784583+00:00</created>
  <description>
<![CDATA[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]]>  </description>
  <activities>
    <activity datechanged="2010-09-22T12:43:36.045348+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Philip Stoev</person>
      <message>added bug</message>
    </activity>
    <activity datechanged="2010-09-22T12:45:16.784583+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[maria]]>      </newvalue>
      <whatchanged>bug task added</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-09-22T12:45:43.241566+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[5.2]]>      </newvalue>
      <whatchanged>maria: milestone</whatchanged>
      <person>Philip Stoev</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:02.748697+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Opinion]]>      </newvalue>
      <whatchanged>maria: status</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:07.544113+00:00">
      <oldvalue>
<![CDATA[New]]>      </oldvalue>
      <newvalue>
<![CDATA[Opinion]]>      </newvalue>
      <whatchanged>oqgraph: status</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:16.259158+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[Low]]>      </newvalue>
      <whatchanged>maria: importance</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:27.227316+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Antony T Curtis (atcurtis)]]>      </newvalue>
      <whatchanged>maria: assignee</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:32.813847+00:00">
      <oldvalue>
<![CDATA[Undecided]]>      </oldvalue>
      <newvalue>
<![CDATA[Low]]>      </newvalue>
      <whatchanged>oqgraph: importance</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:45.615990+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[Antony T Curtis (atcurtis)]]>      </newvalue>
      <whatchanged>oqgraph: assignee</whatchanged>
      <person>Arjen Lentz</person>
      <message></message>
    </activity>
    <activity datechanged="2010-10-22T11:52:52.045672+00:00">
      <oldvalue>
<![CDATA[]]>      </oldvalue>
      <newvalue>
<![CDATA[]]>      </newvalue>
      <whatchanged>bug</whatchanged>
      <person>Arjen Lentz</person>
      <message>added subscriber Arjen Lentz</message>
    </activity>
  </activities>
  <comments>
    <comment commentlink="https://api.launchpad.net/1.0/oqgraph/+bug/645171/comments/1" datecreated="2010-09-24T15:08:47.727408+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Compiler warnings when compiling oqgraph in maria-5.2]]>      </subject>
      <content>
<![CDATA[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’
]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/oqgraph/+bug/645171/comments/2" datecreated="2010-10-22T11:52:58.776492+00:00">
      <person>Arjen Lentz</person>
      <subject>
<![CDATA[Re: Compiler warnings when compiling oqgraph in maria-5.2]]>      </subject>
      <content>
<![CDATA[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.]]>      </content>
    </comment>
    <comment commentlink="https://api.launchpad.net/1.0/oqgraph/+bug/645171/comments/3" datecreated="2010-10-22T17:34:49.988688+00:00">
      <person>Philip Stoev</person>
      <subject>
<![CDATA[Re: Compiler warnings when compiling oqgraph in maria-5.2]]>      </subject>
      <content>
<![CDATA[For any warnings in the Boost library, please file a bug in the upstream project. Our goal is to have a warning-free MariaDB.]]>      </content>
    </comment>
  </comments>
</launchpad-bug>
