From 53561c68c0fc7a593e87dd015375f8e43fb922b0 Mon Sep 17 00:00:00 2001 From: zilmar Date: Fri, 5 Oct 2012 19:14:32 +1000 Subject: [PATCH] Cleaned up warnings (Warning level 4) in settings pages --- .../User Interface/Settings Config.cpp | 7 +++--- .../Settings/Settings Page - Directories.cpp | 24 +++++++++---------- .../Settings Page - Game - General.cpp | 2 +- .../Settings Page - Game - Plugin.cpp | 6 ++--- .../Settings/Settings Page - Game - Plugin.h | 16 ++++++------- .../Settings/Settings Page - Game Browser.cpp | 10 ++++---- .../Settings Page - Keyboard Shortcuts.cpp | 21 +++++++--------- .../Settings/Settings Page - Plugin.cpp | 4 ++-- .../Settings/Settings Page - Plugin.h | 16 ++++++------- .../User Interface/Settings/Settings Page.h | 6 ++--- 10 files changed, 54 insertions(+), 58 deletions(-) diff --git a/Source/Project64/User Interface/Settings Config.cpp b/Source/Project64/User Interface/Settings Config.cpp index 95d8bb91b..2c2f721ac 100644 --- a/Source/Project64/User Interface/Settings Config.cpp +++ b/Source/Project64/User Interface/Settings Config.cpp @@ -173,7 +173,7 @@ LRESULT CSettingConfig::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /* return TRUE; } -LRESULT CSettingConfig::OnClicked (WORD wNotifyCode, WORD wID, HWND , BOOL& bHandled) +LRESULT CSettingConfig::OnClicked (WORD /*wNotifyCode*/, WORD wID, HWND , BOOL& /*bHandled*/) { switch(wID) { @@ -246,9 +246,8 @@ void CSettingConfig::ApplySettings( bool UpdateScreen ) CSettingTypeApplication::Flush(); } -LRESULT CSettingConfig::OnPageListItemChanged(NMHDR* phdr) +LRESULT CSettingConfig::OnPageListItemChanged(NMHDR* /*phdr*/) { - NMLISTVIEW* pnmlv = (NMLISTVIEW*) phdr; HTREEITEM hItem = m_PagesTreeList.GetSelectedItem(); CSettingsPage * Page = (CSettingsPage * )m_PagesTreeList.GetItemData(hItem); @@ -265,7 +264,7 @@ LRESULT CSettingConfig::OnPageListItemChanged(NMHDR* phdr) return 0; // retval ignored } -LRESULT CSettingConfig::OnSettingPageChanged ( UINT /*uMsg*/, WPARAM wPage, LPARAM /*lParam*/) +LRESULT CSettingConfig::OnSettingPageChanged ( UINT /*uMsg*/, WPARAM /*wPage*/, LPARAM /*lParam*/) { ::EnableWindow(GetDlgItem(IDAPPLY),true); ::EnableWindow(GetDlgItem(IDC_RESET_PAGE), m_CurrentPage->EnableReset()); diff --git a/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp b/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp index 0115fe2f8..c539ca3b8 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Directories.cpp @@ -44,7 +44,7 @@ COptionsDirectoriesPage::COptionsDirectoriesPage (HWND hParent, const RECT & rcD UpdatePageSettings(); } -int CALLBACK COptionsDirectoriesPage::SelectDirCallBack (HWND hwnd,DWORD uMsg,DWORD lp, DWORD lpData) +int CALLBACK COptionsDirectoriesPage::SelectDirCallBack (HWND hwnd,DWORD uMsg,DWORD /*lp*/, DWORD lpData) { switch(uMsg) { @@ -90,62 +90,62 @@ void COptionsDirectoriesPage::SelectDirectory( LanguageStringID Title, CModified } } -void COptionsDirectoriesPage::PluginDirChanged ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::PluginDirChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { if (m_InUpdateSettings) { return; } m_PluginDir.SetChanged(true); SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0); } -void COptionsDirectoriesPage::AutoSaveDirChanged ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::AutoSaveDirChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { if (m_InUpdateSettings) { return; } m_AutoSaveDir.SetChanged(true); SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0); } -void COptionsDirectoriesPage::InstantSaveDirChanged ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::InstantSaveDirChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { if (m_InUpdateSettings) { return; } m_InstantSaveDir.SetChanged(true); SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0); } -void COptionsDirectoriesPage::SnapShotDirChanged ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SnapShotDirChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { if (m_InUpdateSettings) { return; } m_ScreenShotDir.SetChanged(true); SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0); } -void COptionsDirectoriesPage::TextureDirChanged ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::TextureDirChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { if (m_InUpdateSettings) { return; } m_TextureDir.SetChanged(true); SendMessage(GetParent(),PSM_CHANGED,(WPARAM)m_hWnd,0); } -void COptionsDirectoriesPage::SelectPluginDir ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SelectPluginDir ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { SelectDirectory(DIR_SELECT_PLUGIN,m_PluginDir,m_PluginDefault, m_PluginSelected); } -void COptionsDirectoriesPage::SelectAutoDir ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SelectAutoDir ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { SelectDirectory(DIR_SELECT_AUTO,m_AutoSaveDir,m_AutoSaveDefault, m_AutoSaveSelected); } -void COptionsDirectoriesPage::SelectInstantDir ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SelectInstantDir ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { SelectDirectory(DIR_SELECT_INSTANT,m_InstantSaveDir,m_InstantDefault, m_InstantSelected); } -void COptionsDirectoriesPage::SelectSnapShotDir ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SelectSnapShotDir ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { SelectDirectory(DIR_SELECT_SCREEN,m_ScreenShotDir,m_ScreenShotDefault, m_ScreenShotSelected); } -void COptionsDirectoriesPage::SelectTextureDir ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::SelectTextureDir ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { SelectDirectory(DIR_SELECT_TEXTURE,m_TextureDir,m_TextureDefault, m_TextureSelected); } @@ -190,7 +190,7 @@ void COptionsDirectoriesPage::UpdatePageSettings() m_InUpdateSettings = false; } -void COptionsDirectoriesPage::UseSelectedClicked ( UINT Code, int id, HWND ctl ) +void COptionsDirectoriesPage::UseSelectedClicked ( UINT /*Code*/, int id, HWND /*ctl*/ ) { CModifiedButton * Button = NULL; switch (id) diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp index 2f4f2bc6e..cc0bd94b8 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - General.cpp @@ -29,7 +29,7 @@ CGameGeneralPage::CGameGeneralPage (HWND hParent, const RECT & rcDispay ) if (ComboBox) { ComboBox->SetTextField(GetDlgItem(IDC_SAVE_TYPE_TEXT)); - ComboBox->AddItem(GS(SAVE_FIRST_USED), SaveChip_Auto ); + ComboBox->AddItem(GS(SAVE_FIRST_USED), (WPARAM)SaveChip_Auto ); ComboBox->AddItem(GS(SAVE_4K_EEPROM), SaveChip_Eeprom_4K ); ComboBox->AddItem(GS(SAVE_16K_EEPROM), SaveChip_Eeprom_16K ); ComboBox->AddItem(GS(SAVE_SRAM), SaveChip_Sram ); diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp index 5ce145e0e..2b23a7da3 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.cpp @@ -272,7 +272,7 @@ void CGamePluginPage::ApplyComboBoxes ( void ) } } -bool CGamePluginPage::ResetComboBox ( CModifiedComboBox & ComboBox, SettingID Type ) +bool CGamePluginPage::ResetComboBox ( CModifiedComboBox & ComboBox, SettingID /*Type*/ ) { if (!ComboBox.IsChanged()) { @@ -297,7 +297,7 @@ bool CGamePluginPage::ResetComboBox ( CModifiedComboBox & ComboBox, SettingID Ty return false; } -void CGamePluginPage::HleGfxChanged ( UINT Code, int id, HWND ctl ) +void CGamePluginPage::HleGfxChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ButtonList::iterator iter = m_ButtonList.begin(); iter != m_ButtonList.end(); iter ++) { @@ -321,7 +321,7 @@ void CGamePluginPage::HleGfxChanged ( UINT Code, int id, HWND ctl ) } } -void CGamePluginPage::HleAudioChanged ( UINT Code, int id, HWND ctl ) +void CGamePluginPage::HleAudioChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ButtonList::iterator iter = m_ButtonList.begin(); iter != m_ButtonList.end(); iter ++) { diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h index da0f7e387..fb324fcad 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Game - Plugin.h @@ -32,15 +32,15 @@ public: void ResetPage ( void ); private: - void GfxPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(GFX_LIST); } - void AudioPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(AUDIO_LIST); } - void ControllerPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(CONT_LIST); } - void RspPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(RSP_LIST); } + void GfxPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(GFX_LIST); } + void AudioPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(AUDIO_LIST); } + void ControllerPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(CONT_LIST); } + void RspPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(RSP_LIST); } - void GfxPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(GFX_LIST,GFX_ABOUT); } - void AudioPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(AUDIO_LIST,AUDIO_ABOUT); } - void ControllerPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(CONT_LIST,CONT_ABOUT); } - void RspPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(RSP_LIST,RSP_ABOUT); } + void GfxPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(GFX_LIST,GFX_ABOUT); } + void AudioPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(AUDIO_LIST,AUDIO_ABOUT); } + void ControllerPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(CONT_LIST,CONT_ABOUT); } + void RspPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(RSP_LIST,RSP_ABOUT); } void HleGfxChanged ( UINT Code, int id, HWND ctl ); void HleAudioChanged ( UINT Code, int id, HWND ctl ); diff --git a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp index 0b4136495..c5d8d72bd 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Game Browser.cpp @@ -85,7 +85,7 @@ void COptionsGameBrowserPage::FixCtrlState ( void ) ::EnableWindow(GetDlgItem(IDC_RECURSION),bEnabled); } -void COptionsGameBrowserPage::AddFieldClicked ( UINT Code, int id, HWND ctl ) +void COptionsGameBrowserPage::AddFieldClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { int index = m_Avaliable.GetCurSel(); if (index < 0) @@ -111,7 +111,7 @@ void COptionsGameBrowserPage::AddFieldClicked ( UINT Code, int id, HWND ctl ) SendMessage(GetParent(),PSM_CHANGED ,(WPARAM)m_hWnd,0); } -void COptionsGameBrowserPage::RemoveFieldClicked ( UINT Code, int id, HWND ctl ) +void COptionsGameBrowserPage::RemoveFieldClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { int index = SendMessage(GetDlgItem(IDC_USING),LB_GETCURSEL,0,0); if (index < 0) @@ -138,7 +138,7 @@ void COptionsGameBrowserPage::RemoveFieldClicked ( UINT Code, int id, HWND ctl ) SendMessage(GetParent(),PSM_CHANGED ,(WPARAM)m_hWnd,0); } -void COptionsGameBrowserPage::MoveFieldUpClicked ( UINT Code, int id, HWND ctl ) +void COptionsGameBrowserPage::MoveFieldUpClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { int index = m_Using.GetCurSel(); if (index <= 0) @@ -157,7 +157,7 @@ void COptionsGameBrowserPage::MoveFieldUpClicked ( UINT Code, int id, HWND ctl ) SendMessage(GetParent(),PSM_CHANGED ,(WPARAM)m_hWnd,0); } -void COptionsGameBrowserPage::MoveFieldDownClicked ( UINT Code, int id, HWND ctl ) +void COptionsGameBrowserPage::MoveFieldDownClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { int index = m_Using.GetCurSel(); if (index < 0 || index >= (m_Using.GetCount() - 1)) @@ -197,7 +197,7 @@ void COptionsGameBrowserPage::ApplySettings( bool UpdateScreen ) } bColChanged = true; } else { - int Item, listCount = m_Using.GetCount(); + size_t Item, listCount = m_Using.GetCount(); for (Item = 0; Item < listCount; Item ++ ) { int Pos = m_Using.GetItemData(Item); diff --git a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp index 49167feac..efa8c709e 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Keyboard Shortcuts.cpp @@ -62,7 +62,7 @@ void COptionsShortCutsPage::CheckResetEnable ( void ) m_EnableReset = false; } -void COptionsShortCutsPage::OnCpuStateChanged(UINT Code, int id, HWND ctl) +void COptionsShortCutsPage::OnCpuStateChanged(UINT /*Code*/, int /*id*/, HWND /*ctl*/) { ACCESS_MODE AccessLevel = (ACCESS_MODE)m_CpuState.GetItemData(m_CpuState.GetCurSel()); @@ -80,7 +80,7 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT Code, int id, HWND ctl) HTREEITEM hParent = m_MenuItems.GetChildItem(TVI_ROOT); while (hParent) { - if (m_MenuItems.GetItemData(hParent) == Item->second.Section()) + if (m_MenuItems.GetItemData(hParent) == (DWORD_PTR)Item->second.Section()) { break; } @@ -115,7 +115,7 @@ void COptionsShortCutsPage::OnCpuStateChanged(UINT Code, int id, HWND ctl) } } -void COptionsShortCutsPage::OnRemoveClicked ( UINT Code, int id, HWND ctl ) +void COptionsShortCutsPage::OnRemoveClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { HTREEITEM hSelectedItem = m_MenuItems.GetSelectedItem(); if (hSelectedItem == NULL) @@ -131,8 +131,6 @@ void COptionsShortCutsPage::OnRemoveClicked ( UINT Code, int id, HWND ctl ) } CShortCutItem * ShortCut = (CShortCutItem *)m_MenuItems.GetItemData(hSelectedItem); - - ACCESS_MODE AccessLevel = (ACCESS_MODE)m_CpuState.GetItemData(m_CpuState.GetCurSel()); //Make sure an item is selected int index = m_CurrentKeys.GetCurSel(); @@ -150,12 +148,12 @@ void COptionsShortCutsPage::OnRemoveClicked ( UINT Code, int id, HWND ctl ) SendMessage(GetParent(),PSM_CHANGED ,(WPARAM)m_hWnd,0); } -void COptionsShortCutsPage::OnDetectKeyClicked ( UINT Code, int id, HWND ctl ) +void COptionsShortCutsPage::OnDetectKeyClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { CloseHandle(CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)stInputGetKeys,this,0,NULL)); } -void COptionsShortCutsPage::OnAssignClicked ( UINT Code, int id, HWND ctl ) +void COptionsShortCutsPage::OnAssignClicked ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { //Get the virtual key info int index = m_VirtualKeyList.GetCurSel(); @@ -203,7 +201,7 @@ void COptionsShortCutsPage::OnAssignClicked ( UINT Code, int id, HWND ctl ) SendMessage(GetParent(),PSM_CHANGED ,(WPARAM)m_hWnd,0); } -void COptionsShortCutsPage::OnShortCutChanged ( UINT Code, int id, HWND ctl ) +void COptionsShortCutsPage::OnShortCutChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { //Get the virtual key info int index = m_VirtualKeyList.GetCurSel(); @@ -264,7 +262,7 @@ void COptionsShortCutsPage::RefreshShortCutOptions ( HTREEITEM hItem ) } -BOOL CALLBACK KeyPromptDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) +BOOL CALLBACK KeyPromptDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM /*lParam*/) { switch (uMsg) { @@ -300,11 +298,10 @@ void COptionsShortCutsPage::InputGetKeys (void) } if (msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN ) { int nVirtKey = (int)msg.wParam; - DWORD lKeyData = msg.lParam; if (nVirtKey == VK_SHIFT) { continue; } if (nVirtKey == VK_CONTROL) { continue; } if (nVirtKey == VK_MENU) { continue; } - SendDlgItemMessage(IDC_VIRTUALKEY,CB_SETCURSEL,-1,0); + SendDlgItemMessage(IDC_VIRTUALKEY,CB_SETCURSEL,(WPARAM)-1,0); for (int count = 0; count < SendDlgItemMessage(IDC_VIRTUALKEY,CB_GETCOUNT,0,0); count++) { int Data = (int)SendDlgItemMessage(IDC_VIRTUALKEY,CB_GETITEMDATA,count,0); if (Data != nVirtKey) { continue; } @@ -341,7 +338,7 @@ void COptionsShortCutsPage::ShowPage() ShowWindow(SW_SHOW); } -void COptionsShortCutsPage::ApplySettings( bool UpdateScreen ) +void COptionsShortCutsPage::ApplySettings( bool /*UpdateScreen*/ ) { m_ShortCuts.Save(); _Settings->SaveBool(Info_ShortCutsChanged,true); diff --git a/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp b/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp index 8d0b92870..dd2f6a35a 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp +++ b/Source/Project64/User Interface/Settings/Settings Page - Plugin.cpp @@ -283,7 +283,7 @@ bool COptionPluginPage::ResetComboBox ( CModifiedComboBox & ComboBox, SettingID return false; } -void COptionPluginPage::HleGfxChanged ( UINT Code, int id, HWND ctl ) +void COptionPluginPage::HleGfxChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ButtonList::iterator iter = m_ButtonList.begin(); iter != m_ButtonList.end(); iter ++) { @@ -307,7 +307,7 @@ void COptionPluginPage::HleGfxChanged ( UINT Code, int id, HWND ctl ) } } -void COptionPluginPage::HleAudioChanged ( UINT Code, int id, HWND ctl ) +void COptionPluginPage::HleAudioChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ButtonList::iterator iter = m_ButtonList.begin(); iter != m_ButtonList.end(); iter ++) { diff --git a/Source/Project64/User Interface/Settings/Settings Page - Plugin.h b/Source/Project64/User Interface/Settings/Settings Page - Plugin.h index 4fe38a77a..b3bcd6d7e 100644 --- a/Source/Project64/User Interface/Settings/Settings Page - Plugin.h +++ b/Source/Project64/User Interface/Settings/Settings Page - Plugin.h @@ -32,15 +32,15 @@ public: void ResetPage ( void ); private: - void GfxPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(GFX_LIST); } - void AudioPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(AUDIO_LIST); } - void ControllerPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(CONT_LIST); } - void RspPluginAbout ( UINT Code, int id, HWND ctl ) { ShowAboutButton(RSP_LIST); } + void GfxPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(GFX_LIST); } + void AudioPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(AUDIO_LIST); } + void ControllerPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(CONT_LIST); } + void RspPluginAbout ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { ShowAboutButton(RSP_LIST); } - void GfxPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(GFX_LIST,GFX_ABOUT); } - void AudioPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(AUDIO_LIST,AUDIO_ABOUT); } - void ControllerPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(CONT_LIST,CONT_ABOUT); } - void RspPluginChanged ( UINT Code, int id, HWND ctl ) { PluginItemChanged(RSP_LIST,RSP_ABOUT); } + void GfxPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(GFX_LIST,GFX_ABOUT); } + void AudioPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(AUDIO_LIST,AUDIO_ABOUT); } + void ControllerPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(CONT_LIST,CONT_ABOUT); } + void RspPluginChanged ( UINT /*Code*/, int /*id*/, HWND /*ctl*/ ) { PluginItemChanged(RSP_LIST,RSP_ABOUT); } void HleGfxChanged ( UINT Code, int id, HWND ctl ); void HleAudioChanged ( UINT Code, int id, HWND ctl ); diff --git a/Source/Project64/User Interface/Settings/Settings Page.h b/Source/Project64/User Interface/Settings/Settings Page.h index 833108580..6d836485e 100644 --- a/Source/Project64/User Interface/Settings/Settings Page.h +++ b/Source/Project64/User Interface/Settings/Settings Page.h @@ -55,7 +55,7 @@ protected: return true; } - void CheckBoxChanged ( UINT Code, int id, HWND ctl ) + void CheckBoxChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ButtonList::iterator iter = m_ButtonList.begin(); iter != m_ButtonList.end(); iter ++) { @@ -273,7 +273,7 @@ protected: UpdateTextBoxes(); } - void ComboBoxChanged ( UINT Code, int id, HWND ctl ) + void ComboBoxChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { for (ComboBoxTxtList::iterator cbtxt_iter = m_ComboBoxTxtList.begin(); cbtxt_iter != m_ComboBoxTxtList.end(); cbtxt_iter ++) { @@ -299,7 +299,7 @@ protected: } } - void EditBoxChanged ( UINT Code, int id, HWND ctl ) + void EditBoxChanged ( UINT /*Code*/, int id, HWND /*ctl*/ ) { if (m_UpdatingTxt) {