Boost C++ Libraries: Ticket #5766: Uninitialized variable warnings with GCC 4.4.5-6 https://svn.boost.org/trac10/ticket/5766 <p> Uninitialized variable warnings with Redhat GCC 4.4.5-6 (x86-64), Boost <a class="changeset" href="https://svn.boost.org/trac10/changeset/73613" title="Updated jamfile for gcc 4.4 and 4.3">r73613</a>: </p> <p> In file included from /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/overlay.hpp:21, </p> <blockquote> <p> from /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/intersection_insert.hpp:27, from /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/difference.hpp:14, from /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/geometry.hpp:47, from /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry.hpp:17, from /home/wash/hpx/examples/geometry/point_geometry/server/point.cpp:16: </p> </blockquote> <p> /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp: In member function ‘bool boost::geometry::detail::overlay::sort_on_segment_and_distance&lt;<a class="missing wiki">TurnPoints</a>, Indexed, Geometry1, Geometry2, Reverse1, Reverse2, Strategy&gt;::operator()(const Indexed&amp;, const Indexed&amp;) const [with <a class="missing wiki">TurnPoints</a> = std::deque&lt;boost::geometry::detail::overlay::traversal_turn_info&lt;boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt; &gt;, std::allocator&lt;boost::geometry::detail::overlay::traversal_turn_info&lt;boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt; &gt; &gt; &gt;, Indexed = boost::geometry::detail::overlay::indexed_turn_operation&lt;boost::geometry::detail::overlay::traversal_turn_operation&lt;boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt; &gt; &gt;, Geometry1 = boost::geometry::model::polygon&lt;boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;, true, true, std::vector, std::vector, std::allocator, std::allocator&gt;, Geometry2 = boost::geometry::model::polygon&lt;boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;, true, true, std::vector, std::vector, std::allocator, std::allocator&gt;, bool Reverse1 = false, bool Reverse2 = false, Strategy = boost::geometry::strategy::side::side_by_triangle&lt;void&gt;]’: /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: warning: ‘pi.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]’ may be used uninitialized in this function [-Wuninitialized] /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: note: ‘pi.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]’ was declared here /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: warning: ‘pi.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]’ may be used uninitialized in this function [-Wuninitialized] /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: note: ‘pi.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]’ was declared here /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: warning: ‘pj.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]’ may be used uninitialized in this function [-Wuninitialized] /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: note: ‘pj.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]’ was declared here /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: warning: ‘pj.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]’ may be used uninitialized in this function [-Wuninitialized] /shared/boost/trunk/stage/gcc-4.4.5-release/include/boost/geometry/algorithms/detail/overlay/enrich_intersection_points.hpp:114: note: ‘pj.boost::geometry::model::d2::point_xy&lt;double, boost::geometry::cs::cartesian&gt;::&lt;anonymous&gt;.boost::geometry::model::point&lt;double, 2ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]’ was declared here </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5766 Trac 1.4.3 Barend Gehrels Sat, 14 Jan 2012 13:21:20 GMT <link>https://svn.boost.org/trac10/ticket/5766#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5766#comment:1</guid> <description> <p> m_values are not initialized on purpose. So this is not that easy to solve. Personally I never have this warning, compiling with gcc (<a class="missing wiki">Ubuntu/Linaro</a> 4.4.4-14ubuntu5) 4.4.5. Also in pedantic mode or with -Wextra I don't get them. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 27 Feb 2013 09:20:58 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5766#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5766#comment:2</guid> <description> <p> I also have this problem. </p> <p> In file included from /dls/mx-scratch/upc86896/cctbx-svn/sources/cctbx_project/dxtbx/model/boost_python/detector.cc:20: /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp: In static member function 'static bool dxtbx::model::MultiFlatPanelDetector::panels_intersect(const dxtbx::model::<a class="missing wiki">FlatPanelDetector</a>&amp;, const dxtbx::model::<a class="missing wiki">FlatPanelDetector</a>&amp;)': /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: warning: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]' may be used uninitialized in this function /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: note: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]' was declared here /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: warning: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]' may be used uninitialized in this function /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: note: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]' was declared here /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: warning: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]' may be used uninitialized in this function /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: note: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[1ul]' was declared here /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: warning: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]' may be used uninitialized in this function /dls/mx-scratch/upc86896/cctbx-svn/sources/boost/boost/geometry/algorithms/disjoint.hpp:62: note: 'p.boost::geometry::model::point&lt;double, 3ul, boost::geometry::cs::cartesian&gt;::m_values[0ul]' was declared here </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Barend Gehrels</dc:creator> <pubDate>Fri, 05 Apr 2013 21:16:03 GMT</pubDate> <title>type changed https://svn.boost.org/trac10/ticket/5766#comment:3 https://svn.boost.org/trac10/ticket/5766#comment:3 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Support Requests</span> </li> </ul> Ticket