mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 22:40:52 +00:00
Avoid gcc warnings:
'...' might be used uninitialized in this function In this case 'H', 'N', 'D', and 'F' can indeed be used unitialized, thus possibly causing all sorts of problems. Patch by Peter Breitenlohner git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17198 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
83e5f5e72a
commit
386e76a544
@ -594,8 +594,6 @@ GtkWidget * create_PopUpMenu( void )
|
||||
N=AddMenuCheckItem( window1, (const char*)normal_xpm, Menu,MSGTR_MENU_NormalSize" ",b1,evNormalSize );
|
||||
D=AddMenuCheckItem( window1, (const char*)double_xpm, Menu,MSGTR_MENU_DoubleSize,b2,evDoubleSize );
|
||||
F=AddMenuCheckItem( window1, (const char*)fs_xpm, Menu,MSGTR_MENU_FullScreen,appMPlayer.subWindow.isFullScreen,evFullScreen );
|
||||
}
|
||||
|
||||
if ( !gtkShowVideoWindow && !guiIntfStruct.Playing )
|
||||
{
|
||||
gtk_widget_set_sensitive( H,FALSE );
|
||||
@ -603,6 +601,7 @@ GtkWidget * create_PopUpMenu( void )
|
||||
gtk_widget_set_sensitive( D,FALSE );
|
||||
gtk_widget_set_sensitive( F,FALSE );
|
||||
}
|
||||
}
|
||||
|
||||
AddSeparator( Menu );
|
||||
AddMenuItem( window1, (const char*)exit_xpm, Menu,MSGTR_MENU_Exit, evExit );
|
||||
|
Loading…
Reference in New Issue
Block a user