Received: from eggs.gnu.org ([2001:4830:134:3::10]:36685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYdhC-0000wB-Lk for qemu-devel@nongnu.org; Tue, 31 Jan 2017 14:02:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYdh9-0006hX-Dk for qemu-devel@nongnu.org; Tue, 31 Jan 2017 14:02:26 -0500 From: Markus Armbruster References: <1485879287-12548-1-git-send-email-peter.maydell@linaro.org> <87wpdbw2ki.fsf@dusky.pond.sub.org> <20170131181124.GF20303@redhat.com> Date: Tue, 31 Jan 2017 20:02:19 +0100 In-Reply-To: (Peter Maydell's message of "Tue, 31 Jan 2017 18:32:38 +0000") Message-ID: <87bmunnjd0.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] Drop QEMU_GNUC_PREREQ() checks for gcc older than 4.1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "Daniel P. Berrange" , QEMU Trivial , Paolo Bonzini , "patches@linaro.org" , QEMU Developers Peter Maydell writes: > On 31 January 2017 at 18:11, Daniel P. Berrange wrote: >> On Tue, Jan 31, 2017 at 06:00:13PM +0000, Peter Maydell wrote: >>> We have attributes which we wrap in QEMU_ macros already >>> even though they always expand to the same thing: >>> QEMU_NORETURN and QEMU_ALIGNED. I'm happy to leave these >>> to follow that pattern. (If you wanted to send a patch >>> series that uninlined all of those then I wouldn't hugely >>> object to it, but I think it touches enough files that it's >>> a separate thing from removing the #if guards that this >>> patch does.) >> >> The other option is just to replace QEMU_WARN_UNUSED_RESULT with >> >> #define QEMU_WARN_UNUSED_RESULT G_GNUC_WARN_UNUSED_RESULT >> >> and convert code to use G_GNUC_WARN_UNUSED_RESULT directly until we >> can kill the QEMU specific define. There's no benefit to QEMU having >> its own defines that duplicate stuff already covered by our min >> required glib - G_GNUC_WARN_UNUSED_RESULT was added in 2.10 for >> example. > > I wouldn't object to that either, but again it ought to be > a different patch or patch series to this one... I wouldn't exactly object, just say that to me, wrapping an attribute in a GLib-provided macro even though we're not aware of a compiler that profits from it feels a bit like "look ma, I've read all of the GLib manual!"