Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4482

item_geofunc_internal.h:163:60: error: 'box' may be used uninitialized in this function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.7
    • Fix Version/s: 5.7.21-21
    • Component/s: None
    • Labels:
      None

      Description

      Hi Yura Sorokin,

      looks like I cannot compile PS, branch 5.7 on debian:wheezy

      In file included from /tmp/ps/sql/geometry_rtree.cc:16:0:
      /tmp/ps/sql/item_geofunc_internal.h: In static member function 'static boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::node_pointer boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::apply(InIt, InIt, boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::size_type&, boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::size_type&, const parameters_type&, const Translator&, Allocators&) [with InIt = boost::iterators::filter_iterator<Is_rtree_box_valid, boost::iterators::transform_iterator<Rtree_value_maker_bggeom, boost::range_detail::indexed_iterator<Gis_wkb_vector_const_iterator<Gis_polygon> >, boost::iterators::use_default, boost::iterators::use_default> >; Value = std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>; Options = boost::geometry::index::detail::rtree::options<boost::geometry::index::quadratic<64ul>, boost::geometry::index::detail::rtree::insert_default_tag, boost::geometry::index::detail::rtree::choose_by_content_diff_tag, boost::geometry::index::detail::rtree::split_default_tag, boost::geometry::index::detail::rtree::quadratic_tag, boost::geometry::index::detail::rtree::node_variant_static_tag>; Translator = boost::geometry::index::detail::translator<boost::geometry::index::indexable<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int> >, boost::geometry::index::equal_to<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int> > >; Box = boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >; Allocators = boost::geometry::index::detail::rtree::allocators<std::allocator<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int> >, std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>, boost::geometry::index::quadratic<64ul>, boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, boost::geometry::index::detail::rtree::node_variant_static_tag>; boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::node_pointer = boost::variant<boost::geometry::index::detail::rtree::variant_leaf<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>, boost::geometry::index::quadratic<64ul>, boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, boost::geometry::index::detail::rtree::allocators<std::allocator<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int> >, std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>, boost::geometry::index::quadratic<64ul>, boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, boost::geometry::index::detail::rtree::node_variant_static_tag>, boost::geometry::index::detail::rtree::node_variant_static_tag>, boost::geometry::index::detail::rtree::variant_internal_node<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>, boost::geometry::index::quadratic<64ul>, boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, boost::geometry::index::detail::rtree::allocators<std::allocator<std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int> >, std::pair<boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, long unsigned int>, boost::geometry::index::quadratic<64ul>, boost::geometry::model::box<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian> >, boost::geometry::index::detail::rtree::node_variant_static_tag>, boost::geometry::index::detail::rtree::node_variant_static_tag>, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_, boost::detail::variant::void_>*; boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::size_type = long unsigned int; boost::geometry::index::detail::rtree::pack<Value, Options, Translator, Box, Allocators>::parameters_type = boost::geometry::index::quadratic<64ul>]':
      /tmp/ps/sql/item_geofunc_internal.h:163:60: error: '*((void*)& box +24)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      /tmp/ps/sql/geometry_rtree.cc:69:12: note: '*((void*)& box +24)' was declared here
      /tmp/ps/sql/geometry_rtree.cc:69:12: error: '*((void*)& box +8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      In file included from /tmp/ps/sql/geometry_rtree.cc:16:0:
      /tmp/ps/sql/item_geofunc_internal.h:163:60: error: '*((void*)& box +16)' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      /tmp/ps/sql/geometry_rtree.cc:69:12: note: '*((void*)& box +16)' was declared here
      In file included from /tmp/ps/sql/geometry_rtree.cc:16:0:
      /tmp/ps/sql/item_geofunc_internal.h:163:60: error: 'box' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      /tmp/ps/sql/geometry_rtree.cc:69:12: note: 'box' was declared here
      cc1plus: all warnings being treated as errors
      [ 46%] Building CXX object storage/innobase/CMakeFiles/innobase.dir/fts/fts0tlex.cc.o
      make[2]: *** [libmysqld/CMakeFiles/sql_embedded.dir/__/sql/geometry_rtree.cc.o] Error 1
      
      # gcc --version
      gcc (Debian 4.7.2-5) 4.7.2
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                mykola.marzhan Mykola Marzhan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 35 minutes
                  5h 35m