Re: [spice] server: Don't define a static function if it's not going to be used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, May 25, 2016 at 09:54:07AM +0200, Francois Gouget wrote:
> Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>

This should be fixed by
https://cgit.freedesktop.org/spice/spice/commit/?id=7a51188891885d2950bd20dc129d58f9360a2408

> ---
> 
> Otherwise you get compiler warnings...
> 
>  server/display-channel.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/display-channel.c b/server/display-channel.c
> index b970c9b..b0875e8 100644
> --- a/server/display-channel.c
> +++ b/server/display-channel.c
> @@ -850,9 +850,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);
> @@ -873,8 +873,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)
>  {
> -- 
> 2.8.1
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]