From 082944ad0648c972c661be4dd1d57ada9826bbba Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Fri, 3 Apr 2020 13:01:01 -0400 Subject: [PATCH] Minor build warning fixes. --- CMakeModules/config.h.cmake | 2 ++ common/widgets/paged_dialog.cpp | 2 +- eeschema/dialogs/dialog_schematic_setup.cpp | 2 +- pcbnew/dialogs/dialog_board_setup.cpp | 2 +- pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeModules/config.h.cmake b/CMakeModules/config.h.cmake index a32b8d15f6..534ed3c98e 100644 --- a/CMakeModules/config.h.cmake +++ b/CMakeModules/config.h.cmake @@ -23,7 +23,9 @@ #cmakedefine HAVE_CMATH_ISINF +#if !defined( HAVE_CLOCK_GETTIME ) #cmakedefine HAVE_CLOCK_GETTIME +#endif #cmakedefine HAVE_GETTIMEOFDAY_FUNC diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index 2a07264eb0..44988323e1 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -100,7 +100,7 @@ void PAGED_DIALOG::finishInitialization() m_treebook->Fit(); m_treebook->Layout(); - for( int i = 0; i < m_treebook->GetPageCount(); ++i ) + for( size_t i = 0; i < m_treebook->GetPageCount(); ++i ) m_macHack.push_back( true ); FinishDialogSettings(); diff --git a/eeschema/dialogs/dialog_schematic_setup.cpp b/eeschema/dialogs/dialog_schematic_setup.cpp index 42f1f5e631..9af3e2136a 100644 --- a/eeschema/dialogs/dialog_schematic_setup.cpp +++ b/eeschema/dialogs/dialog_schematic_setup.cpp @@ -67,7 +67,7 @@ DIALOG_SCHEMATIC_SETUP::DIALOG_SCHEMATIC_SETUP( SCH_EDIT_FRAME* aFrame ) : FinishDialogSettings(); - for( int i = 0; i < m_treebook->GetPageCount(); ++i ) + for( size_t i = 0; i < m_treebook->GetPageCount(); ++i ) m_macHack.push_back( true ); } diff --git a/pcbnew/dialogs/dialog_board_setup.cpp b/pcbnew/dialogs/dialog_board_setup.cpp index e5f33fefe7..a55bcd4ce6 100644 --- a/pcbnew/dialogs/dialog_board_setup.cpp +++ b/pcbnew/dialogs/dialog_board_setup.cpp @@ -82,7 +82,7 @@ DIALOG_BOARD_SETUP::DIALOG_BOARD_SETUP( PCB_EDIT_FRAME* aFrame ) : FinishDialogSettings(); - for( int i = 0; i < m_treebook->GetPageCount(); ++i ) + for( size_t i = 0; i < m_treebook->GetPageCount(); ++i ) m_macHack.push_back( true ); } diff --git a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp index d0093a2b26..5bd588f4ae 100644 --- a/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp +++ b/pcbnew/dialogs/dialog_edit_footprint_for_BoardEditor.cpp @@ -156,7 +156,7 @@ DIALOG_FOOTPRINT_BOARD_EDITOR::DIALOG_FOOTPRINT_BOARD_EDITOR( PCB_EDIT_FRAME* aP FinishDialogSettings(); - for( int i = 0; i < m_NoteBook->GetPageCount(); ++i ) + for( size_t i = 0; i < m_NoteBook->GetPageCount(); ++i ) m_macHack.push_back( true ); }