]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Set -Wno-incompatible-pointer-types-discards-qualifiers
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 12 Nov 2020 09:36:58 +0000 (09:36 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 12 Nov 2020 11:21:26 +0000 (11:21 +0000)
commitb3710e9a2af402a2b620de570b062294e11190eb
treefec78a37e8cd0df2fa2cc4179d8ee104ccdc9c64
parentdb98d17709eeb13603730352a70f3817becd7372
Set -Wno-incompatible-pointer-types-discards-qualifiers

With Clang we're getting failures from casts in GLib macros

../dist-unpack/libvirt-6.10.0/src/util/vireventthread.c:35:1:
  error: passing 'typeof (*(&g_define_type_id__volatile)) *'
  (aka 'volatile unsigned long *') to parameter of type
  'gsize *' (aka 'unsigned long *') discards qualifiers
  [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
G_DEFINE_TYPE(virEventThread, vir_event_thread, G_TYPE_OBJECT)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The cast is valid and there's no way for libvirt to workaround
the issue, so we must disable this Clang warning flag.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build