qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 0/3] Use glib 2.26 version macros


From: Dr. David Alan Gilbert
Subject: Re: [Qemu-devel] [PATCH 0/3] Use glib 2.26 version macros
Date: Mon, 12 Oct 2015 17:34:17 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

* Peter Maydell (address@hidden) wrote:
> On 12 October 2015 at 13:31, Daniel P. Berrange <address@hidden> wrote:
> > On Mon, Oct 12, 2015 at 02:24:36PM +0200, Marc-André Lureau wrote:
> >> What about just using the macro, but not bumping glib requirement?
> >
> > It would be desirable -  I think someone explored using the GLIB_VERSION
> > macros before, without bumping version. I can't remember what the problem
> > was that made them abandon that though - maybe someone else recalls...
> 
> I think that was David Gilbert, and I vaguely recall there being
> bad interactions with our glib-compat.h header.

My notes and memory are both somewhat fuzzy on it.

I think that the GLIB_VERSION_MIN/MAX macros only went in in 2.32
but then once you have them they offer a range allowing you to state you
need a minimum of 2.26;  so if we bump the minimum to 2.26
then becareful to check it still works at that.

The interaction of stuff that includes glib.h and others that
include glib-compat.h was messy; I was working on the assumption
that stuff that included glib-compat.h knew it was using newer
things and didn't expect a warning; the problem that Peter
pointed out was that glib-compat gets included by qemu-common so
actually the warnings get disabled in loads of places.

Dave
> 
> -- PMM
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK



reply via email to

[Prev in Thread] Current Thread [Next in Thread]