Re: [libvirt PATCH] Set -Wno-incompatible-pointer-types-discards-qualifiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a Thursday in 2020, Daniel P. Berrangé wrote:
With CLang we're getting failures from cats in GLib macros

s/cats/casts/ :)


../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.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
meson.build | 3 +++
1 file changed, 3 insertions(+)


Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>

Jano

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux