From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH] libxl: Introduce LIBXL_DOMAIN_TYPE_INVALID to make gcc happy Date: Fri, 18 May 2012 16:30:45 +0200 Message-ID: <1337351445.16815.19.camel@Solace> References: <4FB63171.3020102@amd.com> <4FB63EB6.10803@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5957117616977842033==" Return-path: In-Reply-To: <4FB63EB6.10803@amd.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: Christoph Egger Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============5957117616977842033== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-sMxQLsHZkWWuAEJ0M1pw" --=-sMxQLsHZkWWuAEJ0M1pw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2012-05-18 at 14:21 +0200, Christoph Egger wrote: > Introduce LIBXL_DOMAIN_TYPE_INVALID. > Change libxl__domain_type() to return LIBXL_DOMAIN_TYPE_INVALID rather > hardcoding -1. > Adjust code pieces where gcc 4.5.3 claims that LIBXL_DOMAIN_TYPE_INVALID > is not handled. >=20 > This fixes the build error with gcc 4.5.3 reported here: > http://lists.xen.org/archives/html/xen-devel/2012-05/msg01269.html >=20 I was also running into that error and thus I applied this patch, which brought me here: libxl.c: In function =E2=80=98libxl_primary_console_exec=E2=80=99: libxl.c:1233:14: error: =E2=80=98LIBXL_DOMAIN_TYPE_INVALID=E2=80=99 undecla= red (first use in this function) libxl.c:1233:14: note: each undeclared identifier is reported only once for= each function it appears in Which actually seems to be right: $ grep LIBXL_DOMAIN_TYPE_INVALID tools/* -R tools/libxl/libxl_dm.c: case LIBXL_DOMAIN_TYPE_INVALID: tools/libxl/libxl_dm.c: case LIBXL_DOMAIN_TYPE_INVALID: tools/libxl/libxl_dom.c: return LIBXL_DOMAIN_TYPE_INVALID; tools/libxl/libxl_dom.c: return LIBXL_DOMAIN_TYPE_INVALID; tools/libxl/libxl.c: case LIBXL_DOMAIN_TYPE_INVALID: Am I missing something? Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-sMxQLsHZkWWuAEJ0M1pw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAk+2XRUACgkQk4XaBE3IOsTKNgCgmOx9w4xldLg3VP5j7q8gtMZi CrAAoKDPe19OOTE7GZOv8tsGnKJEV7pl =ne0E -----END PGP SIGNATURE----- --=-sMxQLsHZkWWuAEJ0M1pw-- --===============5957117616977842033== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============5957117616977842033==--