mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-11 16:55:33 +00:00
Fix build warning when RED_WORKER_STAT is undefined
since display_channel_print_stats is now static, the compiler complains
when RED_WORKER_STAT is undefined since this function is not used:
../../server/display-channel.c:853:13: error: 'display_channel_print_stats' defined but not used [-Werror=unused-function]
To fix, don't define the function when RED_WORKER_STAT is undefined.
Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
a31efd7e75
commit
7a51188891
@ -848,9 +848,9 @@ static bool drawable_can_stream(DisplayChannel *display, Drawable *drawable)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef RED_WORKER_STAT
|
||||
static void display_channel_print_stats(DisplayChannel *display)
|
||||
{
|
||||
#ifdef RED_WORKER_STAT
|
||||
stat_time_t total = display->add_stat.total;
|
||||
spice_info("add with shadow count %u",
|
||||
display->add_with_shadow_count);
|
||||
@ -871,8 +871,8 @@ static void display_channel_print_stats(DisplayChannel *display)
|
||||
stat_reset(&display->add_stat);
|
||||
stat_reset(&display->exclude_stat);
|
||||
stat_reset(&display->__exclude_stat);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static void drawable_ref_surface_deps(DisplayChannel *display, Drawable *drawable)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user