← Back to team overview

kicad-developers team mailing list archive

Warnings and errors with gcc 6.1.1

 

Application: kicad
Version: (2016-08-24 BZR 7090, Git 532a5fb)-product, release build
Libraries: wxWidgets 3.0.2
Platform: Linux 4.6.4-301.fc24.x86_64 x86_64, 64 bit, Little endian, wxGTK
- Build Info -
wxWidgets: 3.0.2 (UTF-8,wx containers,compatible with 2.8)
Boost: 1.60.0
KiCad - Compiler: GCC 6.1.1 with C++ ABI 1010
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=OFF
                  USE_FP_LIB_TABLE=HARD_CODED_ON
                  BUILD_GITHUB_PLUGIN=OFF

Attached are 'warnings' issued during a build of the above. I daresay the compiler has detected real issues, albeit some are more important than others, and all mess up an otherwise clean build of kicad.

In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h: In constructor ‘DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(PCB_BASE_FRAME*, const SELECTION&)’:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& viaDrill +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:48:51: note: ‘*((void*)& viaDrill +4)’ was declared here
     boost::optional<int> viaX, viaY, viaDiameter, viaDrill;
                                                   ^~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackWidth +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:74: note: ‘*((void*)& trackWidth +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                                          ^~~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackEndY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:63: note: ‘*((void*)& trackEndY +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                               ^~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackEndX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:52: note: ‘*((void*)& trackEndX +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                    ^~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackStartY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:39: note: ‘*((void*)& trackStartY +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                       ^~~~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackStartX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:26: note: ‘*((void*)& trackStartX +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                          ^~~~~~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:174:63: warning: ‘*((void*)& trackLayer +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             m_TrackLayerCtrl->SetLayerSelection( *trackLayer );
                                                               ^
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:121:30: warning: ‘*((void*)& viaY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if( viaY && *viaY != v->GetPosition().y )
                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:118:30: warning: ‘*((void*)& viaX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if( viaX && *viaX != v->GetPosition().x )
                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h: In constructor ‘DIALOG_TRACK_VIA_PROPERTIES::DIALOG_TRACK_VIA_PROPERTIES(PCB_BASE_FRAME*, const SELECTION&)’:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& viaDrill +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:48:51: note: ‘*((void*)& viaDrill +4)’ was declared here
     boost::optional<int> viaX, viaY, viaDiameter, viaDrill;
                                                   ^~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackWidth +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:74: note: ‘*((void*)& trackWidth +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                                          ^~~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackEndY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:63: note: ‘*((void*)& trackEndY +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                               ^~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackEndX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:52: note: ‘*((void*)& trackEndX +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                                    ^~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackStartY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:39: note: ‘*((void*)& trackStartY +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                                       ^~~~~~~~~~~
In file included from /users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:25:0:
/users/jfm/src/kicad/kicad_src/pcbnew/./dialogs/dialog_track_via_properties.h:65:13: warning: ‘*((void*)& trackStartX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             aBinder.SetValue( *aVal );
             ^~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:46:26: note: ‘*((void*)& trackStartX +4)’ was declared here
     boost::optional<int> trackStartX, trackStartY, trackEndX, trackEndY, trackWidth;
                          ^~~~~~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:174:63: warning: ‘*((void*)& trackLayer +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             m_TrackLayerCtrl->SetLayerSelection( *trackLayer );
                                                               ^
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:121:30: warning: ‘*((void*)& viaY +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if( viaY && *viaY != v->GetPosition().y )
                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/users/jfm/src/kicad/kicad_src/pcbnew/dialogs/dialog_track_via_properties.cpp:118:30: warning: ‘*((void*)& viaX +4)’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                     if( viaX && *viaX != v->GetPosition().x )
                         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/users/jfm/src/kicad/kicad_src/eeschema/sch_legacy_plugin.cpp: In member function ‘void SCH_LEGACY_PLUGIN_CACHE::Load()’:
/users/jfm/src/kicad/kicad_src/eeschema/sch_legacy_plugin.cpp:2059:23: warning: unused variable ‘part’ [-Wunused-variable]
             LIB_PART* part = loadPart( reader );
                       ^~~~

/users/jfm/src/kicad/kicad_src/polygon/poly2tri/sweep/sweep.cc: In member function ‘void p2t::Sweep::FlipEdgeEvent(p2t::SweepContext&, p2t::Point&, p2t::Point&, p2t::Triangle*, p2t::Point&)’:
/users/jfm/src/kicad/kicad_src/polygon/poly2tri/sweep/sweep.cc:885:13: warning: the compiler can assume that the address of ‘ot’ will never be NULL [-Waddress]
     if( &ot == NULL )
             ^