← Back to team overview

kicad-developers team mailing list archive

Re: Diff Pairs & Length tuning in the product branch

 

FYI, while compiling 5481 for a coverity scan


In file included from /home/mroszko/kicad/include/geometry/shape.h:28:0,
                 from /home/mroszko/kicad/pcbnew/router/pns_diff_pair.cpp:27:
/home/mroszko/kicad/include/math/vector2d.h: In member function ‘void
PNS_DP_GATEWAYS::BuildGeneric(const VECTOR2I&, const VECTOR2I&, bool,
bool)’:
/home/mroszko/kicad/include/math/vector2d.h:412:54: warning:
‘*((void*)(& m)+4).VECTOR2<int>::y’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
     return VECTOR2<T> ( x - aVector.x, y - aVector.y );
                                                      ^
/home/mroszko/kicad/pcbnew/router/pns_diff_pair.cpp:626:34: note:
‘*((void*)(& m)+4).VECTOR2<int>::y’ was declared here
             OPT_VECTOR2I ips[2], m;
                                  ^
In file included from /home/mroszko/kicad/include/geometry/shape.h:28:0,
                 from /home/mroszko/kicad/pcbnew/router/pns_diff_pair.cpp:27:
/home/mroszko/kicad/include/math/vector2d.h:412:54: warning:
‘*((void*)(& m)+4).VECTOR2<int>::x’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
     return VECTOR2<T> ( x - aVector.x, y - aVector.y );
                                                      ^
/home/mroszko/kicad/pcbnew/router/pns_diff_pair.cpp:626:34: note:
‘*((void*)(& m)+4).VECTOR2<int>::x’ was declared here
             OPT_VECTOR2I ips[2], m;


Follow ups

References