]> git.sesse.net Git - vlc/commitdiff
Fix compiler warnings.
authorRémi Duraffort <ivoire@videolan.org>
Tue, 3 Aug 2010 22:14:00 +0000 (00:14 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 3 Aug 2010 22:28:21 +0000 (00:28 +0200)
modules/access/dc1394.c
modules/demux/live555.cpp
modules/gui/qt4/menus.cpp

index 853135346ead6c7a0270910db92b306115362022..8ab82de5d318d8495f86b723c74c23d3f75013da 100644 (file)
@@ -156,7 +156,7 @@ static int FindCamera( demux_sys_t *sys, demux_t *p_demux )
         }
         if( !found )
         {
-            msg_Err( p_demux, "Can't find camera with uid : 0x%llx.",
+            msg_Err( p_demux, "Can't find camera with uid : 0x%"PRIx64".",
                      sys->selected_uid );
             goto end;
         }
index c4973dcb64e45fbe5024ae69faa491dc76226048..18ff67cc52fd1ab1714aa5980c0efc143378c856 100644 (file)
@@ -1626,7 +1626,7 @@ static block_t *StreamParseAsf( demux_t *p_demux, live_track_t *tk,
         else
         {
             /* Reset on broken stream */
-            msg_Err( p_demux, "Broken packet detected (%d vs %d or %d + %d vs %d)",
+            msg_Err( p_demux, "Broken packet detected (%d vs %zu or %d + %d vs %d)",
                      i_offset, tk->p_asf_block->i_buffer, i_offset, i_payload, i_packet_size);
             tk->p_asf_block->i_buffer = 0;
         }
index ad4092243af1d087009bb1cf0d9f12d432c2ea8a..3e682e081984791198296b4e508e1bcaec1d7ba2 100644 (file)
@@ -27,6 +27,9 @@
  * - Remove static currentGroup
  */
 
+#define __STDC_FORMAT_MACROS 1
+#define __STDC_CONSTANT_MACROS 1
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
@@ -122,7 +125,7 @@ QAction* addMIMStaticEntry( intf_thread_t *p_intf,
                             bool bStatic = false )
 {
     QAction *action;
-    if( strlen( icon ) > 0 )
+    if( !EMPTY_STR( icon ) )
     {
         action = menu->addAction( text, THEMIM,  member );
         action->setIcon( QIcon( icon ) );
@@ -1390,7 +1393,7 @@ int QVLCMenu::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
             case VLC_VAR_INTEGER:
                 var_Get( p_object, psz_var, &val );
                 if( CURTEXT ) menutext = qfu( CURTEXT );
-                else menutext.sprintf( "%d", CURVAL.i_int );
+                else menutext.sprintf( "%"PRId64, CURVAL.i_int );
                 CreateAndConnect( submenu, psz_var, menutext, "", ITEM_RADIO,
                         p_object, CURVAL, i_type,
                         ( CURVAL.i_int == val.i_int )