]> git.sesse.net Git - vlc/commitdiff
skins2(Win): kill more compil warnings
authorErwan Tulou <erwan10@videolan.org>
Tue, 17 May 2011 13:56:04 +0000 (15:56 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 17 May 2011 14:05:06 +0000 (16:05 +0200)
modules/gui/skins2/parser/builder.cpp
modules/gui/skins2/win32/win32_graphics.cpp
modules/gui/skins2/win32/win32_timer.cpp
modules/gui/skins2/win32/win32_window.cpp

index e5e7dc2ebd297dcff80c11f3ff7ce1625770f19f..1de4e2021805f7d9aa1163c86cdf27ba1982b296 100644 (file)
@@ -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
index 141863c45b76a40bb925e2fa61ac53d68188e82b..8b856bfc04ed9f16563917c1cebd00d6531d428c 100644 (file)
@@ -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 )
     {
index 93411da17b171886b9ffc11f9612a45236ed3678..afe15509553092840b144c58b402f8d3351e5d1d 100644 (file)
@@ -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 )
     {
index 215892e2131f2b540ac7bafba651e43ea84b6e1d..4786d960898958c78b33ddecc42d021dee0f042f 100644 (file)
@@ -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.