Re: [libvirt PATCH] util: squelch G_DEFINE_TYPE volatile warnings with GCC 11

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

 



On 12/3/20 12:37 PM, Daniel P. Berrangé wrote:
In this previous commit:

   commit 65491a2dfe00bfcf9f09a8d6eab60234b56c8cc4
   Author: Martin Kletzander <mkletzan@xxxxxxxxxx>
   Date:   Thu Nov 12 13:58:53 2020 +0100

     Do not disable incompatible-pointer-types-discards-qualifiers

We selectively rewrite G_DEFINE_TYPE to avoid warnings about
mismatched volatile/non-volatile pointers that appeared with
CLang when using GLib2 >= 2.67

We have now just hit the reverse problem, GCC >= 11 has started
warning about mismatched volatile/non-volatile pointers but only
with GLib2 < 2.67. The new GLib2 avoids the warning, as does
older GCC.

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
  src/util/glibcompat.h | 31 +++++++++++++++++++++++++++----
  1 file changed, 27 insertions(+), 4 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[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