[Spice-commits] server/red-stream.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Nov 27 10:13:33 UTC 2017
server/red-stream.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 49234be2dd9940eb18728eaac2c5990cbfd9c667
Author: Uri Lublin <uril at redhat.com>
Date: Thu Nov 23 18:43:07 2017 +0200
red-stream: fix build without SASL
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 at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/red-stream.c b/server/red-stream.c
index af722f2a..45e92a57 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)
{
More information about the Spice-commits
mailing list