[vlc-commits] skins2(Win): kill more compil warnings

Erwan Tulou git at videolan.org
Tue May 17 16:06:55 CEST 2011


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Tue May 17 15:56:04 2011 +0200| [6cc89ae733784777ccad8cabd7786cc1c801089f] | committer: Erwan Tulou

skins2(Win): kill more compil warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6cc89ae733784777ccad8cabd7786cc1c801089f
---

 modules/gui/skins2/parser/builder.cpp       |    2 +-
 modules/gui/skins2/win32/win32_graphics.cpp |    1 +
 modules/gui/skins2/win32/win32_timer.cpp    |    1 +
 modules/gui/skins2/win32/win32_window.cpp   |    3 +--
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/skins2/parser/builder.cpp b/modules/gui/skins2/parser/builder.cpp
index e5e7dc2..1de4e20 100644
--- a/modules/gui/skins2/parser/builder.cpp
+++ b/modules/gui/skins2/parser/builder.cpp
@@ -1199,7 +1199,7 @@ string Builder::getFilePath( const string &rFileName ) const
     }
 
 #ifdef WIN32
-    int pos;
+    string::size_type pos;
     while( ( pos = file.find( "/" ) ) != string::npos )
        file.replace( pos, 1, sep );
 #endif
diff --git a/modules/gui/skins2/win32/win32_graphics.cpp b/modules/gui/skins2/win32/win32_graphics.cpp
index 141863c..8b856bf 100644
--- a/modules/gui/skins2/win32/win32_graphics.cpp
+++ b/modules/gui/skins2/win32/win32_graphics.cpp
@@ -81,6 +81,7 @@ void Win32Graphics::drawBitmap( const GenericBitmap &rBitmap,
                                 int xSrc, int ySrc, int xDest, int yDest,
                                 int width, int height, bool blend )
 {
+    (void)blend;
     // Get the bitmap size if necessary
     if( width == -1 )
     {
diff --git a/modules/gui/skins2/win32/win32_timer.cpp b/modules/gui/skins2/win32/win32_timer.cpp
index 93411da..afe1550 100644
--- a/modules/gui/skins2/win32/win32_timer.cpp
+++ b/modules/gui/skins2/win32/win32_timer.cpp
@@ -31,6 +31,7 @@
 void CALLBACK CallbackTimer( HWND hwnd, UINT uMsg,
                              UINT_PTR idEvent, DWORD dwTime )
 {
+    (void)hwnd; (void)uMsg; (void)dwTime;
     Win32Timer *pTimer = (Win32Timer*)idEvent;
     if( pTimer != NULL )
     {
diff --git a/modules/gui/skins2/win32/win32_window.cpp b/modules/gui/skins2/win32/win32_window.cpp
index 215892e..4786d96 100644
--- a/modules/gui/skins2/win32/win32_window.cpp
+++ b/modules/gui/skins2/win32/win32_window.cpp
@@ -52,6 +52,7 @@ Win32Window::Win32Window( intf_thread_t *pIntf, GenericWindow &rWindow,
     OSWindow( pIntf ), m_dragDrop( dragDrop ), m_isLayered( false ),
     m_pParent( pParentWindow ), m_type ( type )
 {
+    (void)hParentWindow;
     Win32Factory *pFactory = (Win32Factory*)Win32Factory::instance( getIntf() );
 
     const char* vlc_name =  "VlC Media Player";
@@ -202,8 +203,6 @@ void Win32Window::raise() const
 
 void Win32Window::setOpacity( uint8_t value ) const
 {
-    Win32Factory *pFactory = (Win32Factory*)Win32Factory::instance( getIntf() );
-
     if( !m_isLayered )
     {
         // add the WS_EX_LAYERED attribute.



More information about the vlc-commits mailing list