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

Eduardo Lima (Etrunko) etrunko at redhat.com
Wed Jun 15 17:45:39 UTC 2016


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



More information about the Spice-devel mailing list