[vlc-commits] Fix unused parameter/variable warnings

Johannes Kauffmann git at videolan.org
Wed Feb 1 10:54:00 UTC 2023


npapi-vlc | branch: master | Johannes Kauffmann <johanneskauffmann at hotmail.com> | Sun Aug  7 12:43:28 2022 +0000| [f898fdadf40f9493d16fe89a1e4c05547c5be6b0] | committer: Steve Lhomme

Fix unused parameter/variable warnings

> https://code.videolan.org/videolan/npapi-vlc/commit/f898fdadf40f9493d16fe89a1e4c05547c5be6b0
---

 activex/vlccontrol2.cpp     | 2 --
 common/win32_fullscreen.cpp | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/activex/vlccontrol2.cpp b/activex/vlccontrol2.cpp
index a1d73ea..9d7266e 100644
--- a/activex/vlccontrol2.cpp
+++ b/activex/vlccontrol2.cpp
@@ -484,7 +484,6 @@ STDMETHODIMP VLCAudio::get_count(long* trackNumber)
             *trackNumber = 0;
             return S_OK;
         }
-        int count = 0;
         auto tracks = media->tracks(VLC::MediaTrack::Type::Audio);
         *trackNumber = tracks.size();
         break;
@@ -1550,7 +1549,6 @@ STDMETHODIMP VLCVideo::get_count(long* trackNumber)
             *trackNumber = 0;
             return S_OK;
         }
-        int count = 0;
         auto tracks = media->tracks(VLC::MediaTrack::Type::Video);
         if ( tracks.empty() )
             return E_OUTOFMEMORY;
diff --git a/common/win32_fullscreen.cpp b/common/win32_fullscreen.cpp
index 79851f3..ab11447 100644
--- a/common/win32_fullscreen.cpp
+++ b/common/win32_fullscreen.cpp
@@ -1061,7 +1061,7 @@ bool VLCWindowsManager::IsFullScreen()
     return 0!=_FSWnd && 0!=_HolderWnd && GetParent(_HolderWnd->hWnd())==_FSWnd->getHWND();
 }
 
-void VLCWindowsManager::OnKeyDownEvent(UINT uKeyMsg, WPARAM wParam, LPARAM lParam)
+void VLCWindowsManager::OnKeyDownEvent(UINT, WPARAM wParam, LPARAM)
 {
     switch(wParam){
         case VK_ESCAPE:



More information about the vlc-commits mailing list