From 4da2971dcc7ba83cfea9ad76883eaa0a40a2f2f7 Mon Sep 17 00:00:00 2001 From: g_harland Date: Thu, 23 Aug 2007 01:40:50 +0000 Subject: [PATCH] Provide return values for Read_Hotkey_Config functions (to eliminate compiler-generated warnings) --- eeschema/eeconfig.cpp | 2 ++ pcbnew/pcbcfg.cpp | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/eeschema/eeconfig.cpp b/eeschema/eeconfig.cpp index a96610097b..b1f7a36864 100644 --- a/eeschema/eeconfig.cpp +++ b/eeschema/eeconfig.cpp @@ -112,6 +112,8 @@ bool Read_Hotkey_Config( WinEDA_DrawFrame * frame, bool verbose ) FullFileName += wxT("libedit"); FullFileName += DEFAULT_HOTKEY_FILENAME_EXT; frame->ReadHotkeyConfigFile(FullFileName, s_LibEdit_Hotkey_List, verbose); + + return TRUE; } diff --git a/pcbnew/pcbcfg.cpp b/pcbnew/pcbcfg.cpp index 94ece1e740..52c7a7aa4c 100644 --- a/pcbnew/pcbcfg.cpp +++ b/pcbnew/pcbcfg.cpp @@ -110,7 +110,7 @@ wxString FullFileName; bool Read_Hotkey_Config( WinEDA_DrawFrame * frame, bool verbose ) /***************************************************************/ /* - * Read the hotkey files config for eeschema and libedit + * Read the hotkey files config for pcbnew and module_edit */ { wxString FullFileName = DEFAULT_HOTKEY_FILENAME_PATH; @@ -121,8 +121,9 @@ bool Read_Hotkey_Config( WinEDA_DrawFrame * frame, bool verbose ) FullFileName += wxT("module_edit"); FullFileName += DEFAULT_HOTKEY_FILENAME_EXT; frame->ReadHotkeyConfigFile(FullFileName, s_module_edit_Hotkey_List, verbose); -} + return TRUE; +} /**************************************************************************/