Commit e1addadb authored by Dick Hollenbeck's avatar Dick Hollenbeck
Browse files

fix compiler warnings on gcc 4.6.3, Debug build

parent 001afa49
Loading
Loading
Loading
Loading
+8 −7
Original line number Original line Diff line number Diff line
Introduction
Introduction
------------
------------

This document details how to build KiCad from source on Windows. The current
This document details how to build KiCad from source on Windows. The current
supported method of building KiCad on Windows systems is to use MinGW/MSYS.
supported method of building KiCad on Windows systems is to use MinGW,
Other build systems such as Visual Studio and Eclipse can be used but your
either from MSYS or cross compiling from Linux. Visual Studio is not
mileage may vary.  If you choose to build KiCad with one of the unsupported
supported, and don't ask about it, it is not supported and will not be.
tools, please do not expect a great deal of help from the KiCad developers

unless you want to be the person that supports the build tool.  If you add
If you add or remove any of the KiCad build dependencies, please update this
or remove any of the KiCad  build dependencies, please update this document.
document.


Install Build Tools
Install Build Tools
-------------------
-------------------
+2 −2
Original line number Original line Diff line number Diff line
@@ -30,13 +30,13 @@ struct minkowski_offset {
  static void convolve_two_point_sequences(polygon_set& result, itrT1 ab, itrT1 ae, itrT2 bb, itrT2 be) {
  static void convolve_two_point_sequences(polygon_set& result, itrT1 ab, itrT1 ae, itrT2 bb, itrT2 be) {
    if(ab == ae || bb == be)
    if(ab == ae || bb == be)
      return;
      return;
    point first_a = *ab;
    // point first_a = *ab;
    point prev_a = *ab;
    point prev_a = *ab;
    std::vector<point> vec;
    std::vector<point> vec;
    polygon poly;
    polygon poly;
    ++ab;
    ++ab;
    for( ; ab != ae; ++ab) {
    for( ; ab != ae; ++ab) {
      point first_b = *bb;
      // point first_b = *bb;
      point prev_b = *bb;
      point prev_b = *bb;
      itrT2 tmpb = bb;
      itrT2 tmpb = bb;
      ++tmpb;
      ++tmpb;
+5 −3
Original line number Original line Diff line number Diff line
@@ -319,9 +319,10 @@ void BOARD_PRINTOUT_CONTROLLER::DrawPage()
    wxLogTrace( tracePrinting, wxT( "Logical origin:                   x=%d, y=%d" ),
    wxLogTrace( tracePrinting, wxT( "Logical origin:                   x=%d, y=%d" ),
                offset.x, offset.y );
                offset.x, offset.y );


#if defined(DEBUG)
#if defined(wxUSE_LOG_TRACE)
    wxRect paperRect = GetPaperRectPixels();
    wxRect paperRect = GetPaperRectPixels();
    wxLogTrace( tracePrinting, wxT( "Paper rectangle:                  left=%d, top=%d, right=%d, bottom=%d" ),
    wxLogTrace( tracePrinting, wxT( "Paper rectangle:                  left=%d, top=%d, "
                                    "right=%d, bottom=%d" ),
                paperRect.GetLeft(), paperRect.GetTop(), paperRect.GetRight(),
                paperRect.GetLeft(), paperRect.GetTop(), paperRect.GetRight(),
                paperRect.GetBottom() );
                paperRect.GetBottom() );


@@ -329,7 +330,8 @@ void BOARD_PRINTOUT_CONTROLLER::DrawPage()
    int devTop = dc->LogicalToDeviceY( drawRect.GetY() );
    int devTop = dc->LogicalToDeviceY( drawRect.GetY() );
    int devRight = dc->LogicalToDeviceX( drawRect.GetRight() );
    int devRight = dc->LogicalToDeviceX( drawRect.GetRight() );
    int devBottom = dc->LogicalToDeviceY( drawRect.GetBottom() );
    int devBottom = dc->LogicalToDeviceY( drawRect.GetBottom() );
    wxLogTrace( tracePrinting, wxT( "Final device rectangle:           left=%d, top=%d, right=%d, bottom=%d\n" ),
    wxLogTrace( tracePrinting, wxT( "Final device rectangle:           left=%d, top=%d, "
                                    "right=%d, bottom=%d\n" ),
                devLeft, devTop, devRight, devBottom );
                devLeft, devTop, devRight, devBottom );
#endif
#endif


+70 −70
Original line number Original line Diff line number Diff line
@@ -77,8 +77,8 @@ class Int128
{
{
  public:
  public:


    ulong64 lo;
    long64 hi;
    long64 hi;
    ulong64 lo;


    Int128(long64 _lo = 0)
    Int128(long64 _lo = 0)
    {
    {