mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04: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 selected;
|
||||||
|
|
||||||
unsigned int element_height;
|
unsigned int element_height;
|
||||||
unsigned int element_width;
|
|
||||||
unsigned int max_rows;
|
unsigned int max_rows;
|
||||||
unsigned int max_elements;
|
unsigned int max_elements;
|
||||||
|
|
||||||
|
|
|
@ -987,7 +987,11 @@ static int take_pointer ( xcb_window_t w, int iters )
|
||||||
if ( ( ++i ) > iters ) {
|
if ( ( ++i ) > iters ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
usleep ( 1000 );
|
struct timespec del = {
|
||||||
|
.tv_sec = 0,
|
||||||
|
.tv_nsec = 1000000
|
||||||
|
};
|
||||||
|
nanosleep ( &del, NULL );
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,8 +87,8 @@ static void history_test ( void )
|
||||||
g_strfreev ( retv );
|
g_strfreev ( retv );
|
||||||
|
|
||||||
for ( unsigned int in = length + 1; in < 26; in++ ) {
|
for ( unsigned int in = length + 1; in < 26; in++ ) {
|
||||||
char *p = g_strdup_printf ( "aap%i", in );
|
char *p = g_strdup_printf ( "aap%u", in );
|
||||||
printf ( "%s- %d\n", p, in );
|
printf ( "%s- %u\n", p, in );
|
||||||
history_set ( file, p );
|
history_set ( file, p );
|
||||||
retv = history_get_list ( file, &length );
|
retv = history_get_list ( file, &length );
|
||||||
|
|
||||||
|
|
|
@ -1264,13 +1264,12 @@ END_TEST
|
||||||
static Suite * theme_parser_suite (void)
|
static Suite * theme_parser_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s;
|
Suite *s;
|
||||||
TCase *tc_core;
|
|
||||||
|
|
||||||
s = suite_create("Theme");
|
s = suite_create("Theme");
|
||||||
|
|
||||||
/* Core test case */
|
/* 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_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_properties_types_names);
|
||||||
tcase_add_test(tc_core, test_core_empty_string);
|
tcase_add_test(tc_core, test_core_empty_string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue