From: Ian Jackson Subject: Re: libxl: build fix Date: Thu, 27 May 2010 15:41:46 +0100 Message-ID: <19454.33962.745307.146954@mariner.uk.xensource.com> References: <201005251136.18205.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201005251136.18205.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("[Xen-devel] libxl: build fix"): > Attached patch makes libxl build again on NetBSD. > > The build error is: > warning: array subscript has type 'char' > Note, that we compile libxl with -Werror This patch is an improvement. But the correct approach is to cast to unsigned char, not uint8_t. (In the context of Xen this doesn't matter since our unsigned chars are all uint8_t anyway.) Ian.