[Spice-commits] server/display-channel.c

Victor Toso de Carvalho victortoso at kemper.freedesktop.org
Wed May 25 07:26:29 UTC 2016

 server/display-channel.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7a51188891885d2950bd20dc129d58f9360a2408
Author: Jonathon Jongsma <jjongsma at redhat.com>
Date:   Tue May 24 13:58:57 2016 -0500

    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 at redhat.com>

diff --git a/server/display-channel.c b/server/display-channel.c
index c214dbc..13be947 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -848,9 +848,9 @@ static bool drawable_can_stream(DisplayChannel *display, Drawable *drawable)
     return TRUE;
 static void display_channel_print_stats(DisplayChannel *display)
     stat_time_t total = display->add_stat.total;
     spice_info("add with shadow count %u",
@@ -871,8 +871,8 @@ static void display_channel_print_stats(DisplayChannel *display)
 static void drawable_ref_surface_deps(DisplayChannel *display, Drawable *drawable)

More information about the Spice-commits mailing list