From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyMj7-00016n-3M for qemu-devel@nongnu.org; Fri, 29 May 2015 12:01:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YyMj2-0007rc-AA for qemu-devel@nongnu.org; Fri, 29 May 2015 12:01:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YyMj2-0007rP-54 for qemu-devel@nongnu.org; Fri, 29 May 2015 12:01:36 -0400 Date: Fri, 29 May 2015 17:01:31 +0100 From: "Dr. David Alan Gilbert" Message-ID: <20150529160130.GC20215@work-vm> References: <1432911708-22845-1-git-send-email-dgilbert@redhat.com> <1432911708-22845-3-git-send-email-dgilbert@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 2/2] Compile time checks for newer glib List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: pbonzini@redhat.com, QEMU Developers , Markus Armbruster , "Michael S. Tsirkin" * Peter Maydell (peter.maydell@linaro.org) wrote: > On 29 May 2015 at 16:01, Dr. David Alan Gilbert (git) > wrote: > > --- a/include/glib-compat.h > > +++ b/include/glib-compat.h > > @@ -16,6 +16,12 @@ > > #ifndef QEMU_GLIB_COMPAT_H > > #define QEMU_GLIB_COMPAT_H > > > > +/* > > + * The source file including this compat header knows it's using newer glib > > + * functions than we generally allow, so don't warn about it. > > + */ > > +#undef GLIB_VERSION_MIN_REQUIRED > > +#undef GLIB_VERSION_MAX_ALLOWED > > #include > > ...but glib-compat.h is included by qemu-common.h and in general > the point is that code anywhere in QEMU can assume the compat > versions exist, so it feels like this will defeat the point. Hmm, a lot of files seem to include glib.h directly. But OK, so then Paolo is suggesting setting the minimum to 2.32 which I can do, but then that wouldn't stop something that's in 2.22-2.32 but not in glib-compat.h Dave > > -- PMM -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK