mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
[CodeCY] Cleanup some more warnings given by CodeCY.
This commit is contained in:
parent
658f3993ba
commit
804f130d5b
4 changed files with 8 additions and 6 deletions
|
@ -74,7 +74,6 @@ struct _listview
|
|||
unsigned int selected;
|
||||
|
||||
unsigned int element_height;
|
||||
unsigned int element_width;
|
||||
unsigned int max_rows;
|
||||
unsigned int max_elements;
|
||||
|
||||
|
|
|
@ -987,7 +987,11 @@ static int take_pointer ( xcb_window_t w, int iters )
|
|||
if ( ( ++i ) > iters ) {
|
||||
break;
|
||||
}
|
||||
usleep ( 1000 );
|
||||
struct timespec del = {
|
||||
.tv_sec = 0,
|
||||
.tv_nsec = 1000000
|
||||
};
|
||||
nanosleep ( &del, NULL );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -87,8 +87,8 @@ static void history_test ( void )
|
|||
g_strfreev ( retv );
|
||||
|
||||
for ( unsigned int in = length + 1; in < 26; in++ ) {
|
||||
char *p = g_strdup_printf ( "aap%i", in );
|
||||
printf ( "%s- %d\n", p, in );
|
||||
char *p = g_strdup_printf ( "aap%u", in );
|
||||
printf ( "%s- %u\n", p, in );
|
||||
history_set ( file, p );
|
||||
retv = history_get_list ( file, &length );
|
||||
|
||||
|
|
|
@ -1264,13 +1264,12 @@ END_TEST
|
|||
static Suite * theme_parser_suite (void)
|
||||
{
|
||||
Suite *s;
|
||||
TCase *tc_core;
|
||||
|
||||
s = suite_create("Theme");
|
||||
|
||||
/* Core test case */
|
||||
{
|
||||
tc_core = tcase_create("Core");
|
||||
TCase *tc_core = tcase_create("Core");
|
||||
tcase_add_checked_fixture(tc_core, theme_parser_setup, theme_parser_teardown);
|
||||
tcase_add_test(tc_core, test_properties_types_names);
|
||||
tcase_add_test(tc_core, test_core_empty_string);
|
||||
|
|
Loading…
Reference in a new issue