mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Fix LLVM compiler warnings.
This commit is contained in:
parent
97c11d7d85
commit
382b93ae03
2 changed files with 5 additions and 4 deletions
|
@ -204,7 +204,7 @@ typedef struct _Settings
|
||||||
/** Height of an element in #chars */
|
/** Height of an element in #chars */
|
||||||
int element_height;
|
int element_height;
|
||||||
/** Sidebar mode, show the switchers */
|
/** Sidebar mode, show the switchers */
|
||||||
int sidebar_mode;
|
unsigned int sidebar_mode;
|
||||||
/** Lazy filter limit. */
|
/** Lazy filter limit. */
|
||||||
unsigned int lazy_filter_limit;
|
unsigned int lazy_filter_limit;
|
||||||
} Settings;
|
} Settings;
|
||||||
|
|
|
@ -2265,9 +2265,10 @@ static void run_switcher ( int do_fork, SwitcherMode mode )
|
||||||
mode = ( mode + 1 ) % num_switchers;
|
mode = ( mode + 1 ) % num_switchers;
|
||||||
}
|
}
|
||||||
else if ( retv == PREVIOUS_DIALOG ) {
|
else if ( retv == PREVIOUS_DIALOG ) {
|
||||||
mode = ( mode - 1 ) % num_switchers;
|
if(mode == 0 ) {
|
||||||
if ( mode < 0 ) {
|
|
||||||
mode = num_switchers - 1;
|
mode = num_switchers - 1;
|
||||||
|
}else {
|
||||||
|
mode = ( mode - 1 ) % num_switchers;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( retv == RELOAD_DIALOG ) {
|
else if ( retv == RELOAD_DIALOG ) {
|
||||||
|
@ -2520,7 +2521,7 @@ static void parse_cmd_options ( int argc, char ** argv )
|
||||||
|
|
||||||
find_arg_int ( argc, argv, "-eh", &( config.element_height ) );
|
find_arg_int ( argc, argv, "-eh", &( config.element_height ) );
|
||||||
|
|
||||||
find_arg_int ( argc, argv, "-lazy-filter-limit", &( config.lazy_filter_limit ) );
|
find_arg_uint ( argc, argv, "-lazy-filter-limit", &( config.lazy_filter_limit ) );
|
||||||
|
|
||||||
if ( find_arg ( argc, argv, "-sidebar-mode" ) >= 0 ) {
|
if ( find_arg ( argc, argv, "-sidebar-mode" ) >= 0 ) {
|
||||||
config.sidebar_mode = TRUE;
|
config.sidebar_mode = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue