← Back to team overview

kicad-developers team mailing list archive

Re: Annoying compil warning after commit 32185ddcd36da25348044ebb10ce47f8090cb3a3

 

On 04.08.2017 18:22, jp charras wrote:
> Hi Tomasz,
> 
> I have this annoying warning when compiling Kicad on msys2:
> 
> F:/kicad-launchpad/git_testing/pcbnew/ratsnest_data.cpp: In member function 'const
> std::__cxx11::list<std::shared_ptr<hed::EDGE> >&
> RN_NET::TRIANGULATOR_STATE::hedTriangulation(std::vector<std::shared_ptr<hed::NODE> >&)':
> F:/kicad-launchpad/git_testing/pcbnew/ratsnest_data.cpp:171:34: warning: reference to local variable
> 'edges' returned [-Wreturn-local-addr]
>          std::list<hed::EDGE_PTR> edges;
> 
> 
> Could you have a look into it?
> 
Hi,

I overlooked this, but fortunately this code is not used. I'll fix it asap.

Tom



Follow ups

References