[PATCH 0/2 for 6.2] Fix compiler warnings on Fedora 35 / CLang

Daniel P. Berrangé posted 2 patches 2 years, 4 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211123134302.45741-1-berrange@redhat.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl.c        | 14 +++++++++++++-
include/ui/qemu-spice.h |  6 ++++++
ui/clipboard.c          |  3 +--
ui/spice-display.c      | 11 +++++++++++
4 files changed, 31 insertions(+), 3 deletions(-)
[PATCH 0/2 for 6.2] Fix compiler warnings on Fedora 35 / CLang
Posted by Daniel P. Berrangé 2 years, 4 months ago
Current QEMU git master caused compiler warnings on Fedora 35 when using
CLang. It is expected to affect any distro with CLang >= 13.0.0

Since QEMU builds with -Werror by default we should fix these warnings
before release, as this version of QEMU will increasing trigger the
warnings as more distros pull in CLang >= 13.0.0

The spice patch was from John's series at

  https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg01056.html

I pulled out this patch on its own as the above series isn't likely
suitable for merging as a whole during freeze.

The clipboard patch is an alternative impl to what John posted.

Daniel P. Berrangé (1):
  ui: avoid compiler warnings from unused clipboard info variable

John Snow (1):
  spice: Update QXLInterface for spice >= 0.15.0

 hw/display/qxl.c        | 14 +++++++++++++-
 include/ui/qemu-spice.h |  6 ++++++
 ui/clipboard.c          |  3 +--
 ui/spice-display.c      | 11 +++++++++++
 4 files changed, 31 insertions(+), 3 deletions(-)

-- 
2.33.1