Fix compil issues (warnings and missing include)

This commit is contained in:
jean-pierre charras 2020-05-09 08:59:00 +02:00
parent 07c4689fb4
commit c78e7c5485
3 changed files with 5 additions and 4 deletions

View File

@ -27,6 +27,7 @@
* @brief implements generic openGL functions that are common to any openGL target
*/
#include <GL/glew.h>
#include "openGL_includes.h"
#include "ogl_utils.h"

View File

@ -111,7 +111,7 @@ public:
bool AppendRows( size_t aNumRows = 1 ) override
{
for( int i = 0; i < aNumRows; ++i )
for( size_t i = 0; i < aNumRows; ++i )
m_items.emplace_back( wxT( "" ), true, F_SilkS );
if( GetView() )
@ -247,7 +247,7 @@ bool PANEL_MODEDIT_DEFAULTS::TransferDataToWindow()
// Footprint defaults
m_textItemsGrid->GetTable()->AppendRows( m_brdSettings.m_DefaultFPTextItems.size() );
for( int i = 0; i < m_brdSettings.m_DefaultFPTextItems.size(); ++i )
for( size_t i = 0; i < m_brdSettings.m_DefaultFPTextItems.size(); ++i )
{
TEXT_ITEM_INFO item = m_brdSettings.m_DefaultFPTextItems[i];
@ -289,7 +289,7 @@ bool PANEL_MODEDIT_DEFAULTS::Show( bool aShow )
if( aShow && m_firstShow )
{
m_layerClassesGrid->SetColumnWidth( 0, m_layerClassesGrid->GetColumnWidth( 0 ) + 1 );
m_layerClassesGrid->SetColSize( 0, m_layerClassesGrid->GetColSize( 0 ) + 1 );
m_firstShow = false;
}

View File

@ -1052,7 +1052,7 @@ MODULE* PCB_BASE_FRAME::CreateNewModule( const wxString& aModuleName )
module->Value().SetPosition( default_pos );
default_pos.y += settings.GetTextSize( layer ).y;
for( int i = 2; i < settings.m_DefaultFPTextItems.size(); ++i )
for( size_t i = 2; i < settings.m_DefaultFPTextItems.size(); ++i )
{
TEXTE_MODULE* textItem = new TEXTE_MODULE( module );
textItem->SetText( settings.m_DefaultFPTextItems[i].m_Text );