Fix compile warnings.

This commit is contained in:
Dave Davenport 2014-08-24 15:21:35 +02:00
parent 02ef657c41
commit 04e13e3a20
2 changed files with 3 additions and 3 deletions

View File

@ -1687,7 +1687,7 @@ SwitcherMode run_switcher_window ( char **input, G_GNUC_UNUSED void *data )
static int run_dmenu ()
{
int ret_state = TRUE;
int ret_state;
textbox_setup (
config.menu_bg, config.menu_fg,
config.menu_hlbg,
@ -1729,7 +1729,7 @@ static void run_switcher ( int do_fork, SwitcherMode mode )
// Otherwise check if requested mode is enabled.
if ( switchers[mode].cb != NULL ) {
do {
SwitcherMode retv = MODE_EXIT;
SwitcherMode retv ;
retv = switchers[mode].cb ( &input, switchers[mode].cb_data );

View File

@ -186,7 +186,7 @@ ScriptOptions *script_switcher_parse_setup ( const char *str )
if ( index == 2 ) {
return sw;
}
fprintf ( stderr, "The script command '%s' has %d options, but needs 2: <name>:<script>.\n",
fprintf ( stderr, "The script command '%s' has %u options, but needs 2: <name>:<script>.\n",
str, index );
script_switcher_free_options ( sw );
return NULL;