If SPICE_SERVER_VERSION &lt; 0.6.0, occur error unused variable &#39;streaming_video&#39;.<br>So, move streaming_video to block.<br><br>---<br>diff --git a/ui/spice-core.c b/ui/spice-core.c<br>index 813cc10..1b51924 100644<br>
--- a/ui/spice-core.c<br>+++ b/ui/spice-core.c<br>@@ -325,7 +325,7 @@ void qemu_spice_init(void)<br>     char *x509_key_file = NULL,<br>         *x509_cert_file = NULL,<br>         *x509_cacert_file = NULL;<br>-    int port, tls_port, len, addr_flags, streaming_video;<br>
+    int port, tls_port, len, addr_flags;<br>     spice_image_compression_t compression;<br>     spice_wan_compression_t wan_compr;<br><br>@@ -429,8 +429,11 @@ void qemu_spice_init(void)<br><br>     str = qemu_opt_get(opts, &quot;streaming-video&quot;);<br>
     if (str) {<br>+       {<br>+       int streaming_video;<br>         streaming_video = parse_stream_video(str);<br>         spice_server_set_streaming_video(spice_server, streaming_video);<br>+       }<br>     }<br><br>
     spice_server_set_agent_mouse<br><br><br>-- <br>Ryo Takaishi<br>
<div style="display: none;" id="FLASH_MESSAGE"></div>