From: Ian Jackson Subject: Re: [PATCH] libxl: fix build for gcc prior to 4.3 Date: Mon, 13 Aug 2012 14:44:26 +0100 Message-ID: <20521.1210.708532.71249@mariner.uk.xensource.com> References: <50225ACD020000780009380F@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50225ACD020000780009380F@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Jan Beulich writes ("[Xen-devel] [PATCH] libxl: fix build for gcc prior to 4.3"): > So far all we (explicitly) require is gcc 3.4 or better, so we > shouldn't be unconditionally using features supported only by much > newer versions. Sorry about that. > Short of a proper replacement, use the "deprecated" attribute instead: > It also produces a warning (thus causing the build to fail due to > -Werror), and is at least getting close to the intention here. I think it would be fine to simply drop this check for earlier gcc's. That would make the compatibility ifdeffery simpler so I would prefer that. Thanks, Ian.