|
Geometry : |
Subject: [geometry] Compiler warnings in geometry 1.50.0 (2) geometry\algorithms\detail\overlay\get_turns.hpp(140): error C4189: 'n' : local variable is initialized but not referenced
From: Volker Schöch (vschoech_at_[hidden])
Date: 2012-07-06 09:34:38
Hi all,
I'm in the process of switching our project from 1.48 to 1.50. There were some warnings in geometry 1.48 that seem to have been resolved. Thank you! On the other hand, there are new warnings in geometry 1.50. IMO, these warnings should be eliminated (for a couple of reasons, one being that they clutter the output window and obscure new/unknown warnings that may be important).
I am compiling with MS VC++ 10 for 32 bit. My polygon type is oriented counter-clockwise and not closed, my point type is based on int.
Regards
Volker
1>c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(140): error C4189: 'n' : local variable is initialized but not referenced
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(235) : see reference to function template instantiation 'bool boost::geometry::detail::get_turns::get_turns_in_sections<Geometry1,Geometry2,Reverse1,Reverse2,Section1,Section2,Turns,TurnPolicy,InterruptPolicy>::neighbouring<Geometry1,Section1>(const Section &,int,int)' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Section1=boost::geometry::section<box_type,2>,
1> Section2=boost::geometry::section<box_type,2>,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy,
1> Section=boost::geometry::section<box_type,2>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(164) : while compiling class template member function 'bool boost::geometry::detail::get_turns::get_turns_in_sections<Geometry1,Geometry2,Reverse1,Reverse2,Section1,Section2,Turns,TurnPolicy,InterruptPolicy>::apply(int,const Geometry1 &,const Section1 &,int,const Geometry2 &,const Section2 &,bool,Turns &,InterruptPolicy &)'
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Section1=boost::geometry::section<box_type,2>,
1> Section2=boost::geometry::section<box_type,2>,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(406) : see reference to class template instantiation 'boost::geometry::detail::get_turns::get_turns_in_sections<Geometry1,Geometry2,Reverse1,Reverse2,Section1,Section2,Turns,TurnPolicy,InterruptPolicy>' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Section1=boost::geometry::section<box_type,2>,
1> Section2=boost::geometry::section<box_type,2>,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\partition.hpp(415) : see reference to function template instantiation 'bool boost::geometry::detail::get_turns::section_visitor<Geometry1,Geometry2,Reverse1,Reverse2,Turns,TurnPolicy,InterruptPolicy>::apply<boost::geometry::section<Box,DimensionCount>>(const Section &,const Section &)' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy,
1> Box=box_type,
1> DimensionCount=2,
1> Section=boost::geometry::section<box_type,2>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(456) : see reference to function template instantiation 'void boost::geometry::partition<Box,ExpandPolicy,OverlapsPolicy>::apply<sections_type,boost::geometry::detail::get_turns::section_visitor<Geometry1,Geometry2,Reverse1,Reverse2,Turns,TurnPolicy,InterruptPolicy>>(const InputCollection &,const InputCollection &,VisitPolicy &,size_t,VisitBoxPolicy)' being compiled
1> with
1> [
1> Box=box_type,
1> ExpandPolicy=boost::geometry::detail::get_turns::get_section_box,
1> OverlapsPolicy=boost::geometry::detail::get_turns::ovelaps_section_box,
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy,
1> InputCollection=sections_type,
1> VisitPolicy=boost::geometry::detail::get_turns::section_visitor<boost::geometry::model::polygon<_TPoint<int>,false,false>,boost::geometry::model::polygon<_TPoint<int>,false,false>,false,false,std::deque<turn_info>,TurnPolicy,boost::geometry::detail::disjoint::disjoint_interrupt_policy>,
1> VisitBoxPolicy=boost::geometry::visit_no_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(433) : while compiling class template member function 'void boost::geometry::detail::get_turns::get_turns_generic<Geometry1,Geometry2,Reverse1,Reverse2,Turns,TurnPolicy,InterruptPolicy>::apply(int,const Geometry1 &,int,const Geometry2 &,Turns &,InterruptPolicy &)'
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(713) : see reference to class template instantiation 'boost::geometry::detail::get_turns::get_turns_generic<Geometry1,Geometry2,Reverse1,Reverse2,Turns,TurnPolicy,InterruptPolicy>' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\detail\overlay\get_turns.hpp(864) : see reference to class template instantiation 'boost::geometry::dispatch::get_turns<GeometryTag1,GeometryTag2,Geometry1,Geometry2,Reverse1,Reverse2,Turns,TurnPolicy,InterruptPolicy>' being compiled
1> with
1> [
1> GeometryTag1=boost::geometry::polygon_tag,
1> GeometryTag2=boost::geometry::polygon_tag,
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Reverse1=false,
1> Reverse2=false,
1> Turns=std::deque<turn_info>,
1> TurnPolicy=TurnPolicy,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(121) : see reference to function template instantiation 'void boost::geometry::get_turns<false,false,boost::geometry::detail::disjoint::assign_disjoint_policy,Geometry1,Geometry2,std::deque<_Ty>,boost::geometry::detail::disjoint::disjoint_interrupt_policy>(const Geometry1 &,const Geometry2 &,Turns &,InterruptPolicy &)' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> _Ty=turn_info,
1> Turns=std::deque<turn_info>,
1> InterruptPolicy=boost::geometry::detail::disjoint::disjoint_interrupt_policy
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(107) : while compiling class template member function 'bool boost::geometry::detail::disjoint::disjoint_linear<Geometry1,Geometry2>::apply(const Geometry1 &,const Geometry2 &)'
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(158) : see reference to class template instantiation 'boost::geometry::detail::disjoint::disjoint_linear<Geometry1,Geometry2>' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(157) : while compiling class template member function 'bool boost::geometry::detail::disjoint::general_areal<Geometry1,Geometry2>::apply(const Geometry1 &,const Geometry2 &)'
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(193) : see reference to class template instantiation 'boost::geometry::detail::disjoint::general_areal<Geometry1,Geometry2>' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\disjoint.hpp(294) : see reference to class template instantiation 'boost::geometry::dispatch::disjoint<GeometryTag1,GeometryTag2,Geometry1,Geometry2,DimensionCount>' being compiled
1> with
1> [
1> GeometryTag1=boost::geometry::polygon_tag,
1> GeometryTag2=boost::geometry::polygon_tag,
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> DimensionCount=2
1> ]
1> c:\program files (x86)\microsoft visual studio 10.0\vc\boost_1_50_0\boost\geometry\algorithms\intersects.hpp(99) : see reference to function template instantiation 'bool boost::geometry::disjoint<Geometry1,Geometry2>(const Geometry1 &,const Geometry2 &)' being compiled
1> with
1> [
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\svn_vschoech\dev\code\library\geometrytypes\_tpolygon.inl(148) : see reference to function template instantiation 'bool boost::geometry::intersects<boost::geometry::model::polygon<Point,ClockWise,Closed>,boost::geometry::model::polygon<Point,ClockWise,Closed>>(const Geometry1 &,const Geometry2 &)' being compiled
1> with
1> [
1> Point=_TPoint<int>,
1> ClockWise=false,
1> Closed=false,
1> Geometry1=boost::geometry::model::polygon<_TPoint<int>,false,false>,
1> Geometry2=boost::geometry::model::polygon<_TPoint<int>,false,false>
1> ]
1> c:\svn_vschoech\dev\code\library\geometrytypes\_tpolygon.inl(137) : while compiling class template member function 'bool _TPolygon<T>::Intersects(const _TPolygon<T> &) const'
1> with
1> [
1> T=int
1> ]
1> c:\svn_vschoech\dev\code\library\geometrytypes\_tpolygon.cpp(5) : see reference to class template instantiation '_TPolygon<T>' being compiled
1> with
1> [
1> T=int
1> ]
-- Volker Schöch | vschoech_at_[hidden] Senior Software Engineer think-cell Software GmbH | Chausseestr. 8/E | 10115 Berlin | Germany http://www.think-cell.com | phone +49 30 666473-10 | US phone +1 800 891 8091 Amtsgericht Berlin-Charlottenburg, HRB 85229 | European Union VAT Id DE813474306 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl
Geometry list run by mateusz at loskot.net