[Spice-devel] [PATCH spice-server 00/10] Minor Clang fixes

Frediano Ziglio fziglio at redhat.com
Mon Jan 22 17:54:52 UTC 2018


Mainly removing warnings, some minor style and minor endian
issues (catched by the warnings).

Frediano Ziglio (10):
  utils: Use const for rgb32_data_has_alpha data argument
  lz4-encoder: Use GUINT32_TO_BE instead of htonl
  char-device: Avoid to use unaligned memory
  dcc-send: Avoid to use unaligned memory
  replay: Do not use obsolete set_mm_time callback
  tests: Avoid some possible not initialized warning from Clang
  red-common: Avoid some not used warning using clang
  sound: Avoid cast that could cause alignment problems
  Avoid some alignment warnings using clang
  utils: Avoid possible unaligned access

 server/char-device.c                  | 24 +++++++++++++-----------
 server/dcc-send.c                     | 10 ++++++----
 server/lz4-encoder.c                  |  3 ++-
 server/red-common.h                   | 13 ++++++++-----
 server/sound.c                        |  6 +++---
 server/tests/replay.c                 |  5 -----
 server/tests/test-display-base.c      |  2 +-
 server/tests/test-display-streaming.c | 10 ++++++----
 server/tests/test-gst.c               |  6 +++---
 server/tests/test-sasl.c              |  2 +-
 server/utils.c                        | 15 ++++++++-------
 server/utils.h                        |  2 +-
 12 files changed, 52 insertions(+), 46 deletions(-)

-- 
2.14.3



More information about the Spice-devel mailing list