Re: [PATCH] red-stream: fix build without SASL

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

 



> 
> put red_stream_disable_writev in an #ifdef HAVE_SASL block.
> red_stream_disable_writev is only called from functions
> that are already in an #ifdef HAVE_SASL block.
> 
> Currently when building with SASL disabled, I get:
>   CC       red-stream.lo
> red-stream.c:441:13: error: 'red_stream_disable_writev'
>            defined but not used [-Werror=unused-function]
> 
> Signed-off-by: Uri Lublin <uril@xxxxxxxxxx>
> ---
>  server/red-stream.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/server/red-stream.c b/server/red-stream.c
> index af722f2ab..45e92a57b 100644
> --- a/server/red-stream.c
> +++ b/server/red-stream.c
> @@ -438,10 +438,12 @@ bool red_stream_is_ssl(RedStream *stream)
>      return (stream->priv->ssl != NULL);
>  }
>  
> +#if HAVE_SASL
>  static void red_stream_disable_writev(RedStream *stream)
>  {
>      stream->priv->writev = NULL;
>  }
> +#endif
>  
>  RedStreamSslStatus red_stream_ssl_accept(RedStream *stream)
>  {

This can be solved also using a "static inline" function or moving the
definition inside the "#if HAVE_SASL" block.

Otherwise,
Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

OT: Maybe we could add "--without-sasl" as an option to one of the
Gitlab build.

Frediano
_______________________________________________
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]