[Spice-devel] [PATCH 0/2] Build fixes for systems without LZ4

Christophe Fergeau cfergeau at redhat.com
Thu Jun 16 10:18:26 UTC 2016


Acked-by: Christophe Fergeau <cfergeau at redhat.com>
for the series

On Wed, Jun 15, 2016 at 02:45:39PM -0300, Eduardo Lima (Etrunko) wrote:
> Simple series fixing the build after commit 903c91cd3013c763abd3f2292f8fbd911a0c83f0.
> This was detected by Smoketest.
> 
> spicevmc.c: In function 'try_compress_lz4':
> spicevmc.c:143:5: error: implicit declaration of function 'LZ4_compress_default' [-Werror=implicit-function-declaration]
>      compressed_data_count = LZ4_compress_default((char*)&msg_item->buf,
>      ^
> spicevmc.c:143:5: error: nested extern declaration of 'LZ4_compress_default' [-Werror=nested-externs]
> spicevmc.c: In function 'handle_compressed_msg':
> spicevmc.c:346:14: error: variable 'decompressed' set but not used [-Werror=unused-but-set-variable]
>      uint8_t *decompressed;
>               ^
> spicevmc.c: At top level:
> spicevmc.c:124:24: error: 'try_compress_lz4' defined but not used [-Werror=unused-function]
>  static RedVmcPipeItem* try_compress_lz4(SpiceVmcState *state, int n, RedVmcPipeItem *msg_item)
>                         ^
> 
> Eduardo Lima (Etrunko) (2):
>   Fix build for systems without LZ4 dependency installed
>   Fix set but not used variable warning
> 
>  server/spicevmc.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> -- 
> 2.5.5
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160616/b8c4d1e9/attachment.sig>


More information about the Spice-devel mailing list