From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] libxl: compile fix Date: Wed, 28 Jul 2010 13:42:25 +0200 Message-ID: <201007281342.25751.Christoph.Egger@amd.com> References: <201007201831.21416.Christoph.Egger@amd.com> <201007271417.51761.Christoph.Egger@amd.com> <19535.3166.214153.676101@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_heBUMOjimTvPlZu" Return-path: In-Reply-To: <19535.3166.214153.676101@mariner.uk.xensource.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: Ian Jackson , "xen-devel@lists.xensource.com" Cc: Stefano Stabellini List-Id: xen-devel@lists.xenproject.org --Boundary-00=_heBUMOjimTvPlZu Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch fixes this compile error: xl_cmdimpl.c: In function 'create_domain': xl_cmdimpl.c:1099: warning: 'action' may be used uninitialized in this function Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_heBUMOjimTvPlZu Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_tools_libxl3.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_libxl3.diff" diff -r 9ea1cf03ef55 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Wed Jul 28 13:35:25 2010 +0200 +++ b/tools/libxl/xl_cmdimpl.c Wed Jul 28 13:41:00 2010 +0200 @@ -1096,7 +1096,7 @@ static int handle_domain_death(struct li struct domain_config *d_config, struct libxl_dominfo *info) { int restart = 0; - enum action_on_shutdown action; + enum action_on_shutdown action = ACTION_DESTROY; switch (info->shutdown_reason) { case SHUTDOWN_poweroff: --Boundary-00=_heBUMOjimTvPlZu 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.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_heBUMOjimTvPlZu--