From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 0 of 1 v5] Fix build failure with gcc's -Werror=switch Date: Mon, 04 Jun 2012 19:23:21 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Christoph Egger , Ian Jackson , Ian Campbell , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org Hi guys, This is another attempt of fixing that build failure with recent gcc-s properly (the one due to -Werror=switch enabled by default). >>From previous versions (namely, v4), I rewrote it as per IanJ's suggestion of going for all the call sites of libxl__domain_type() and deal with the fact it can fail. This way, and thanks to the libxl__domain_build_info_setdefault() machinery, all the places where something different from LIBXL_DOMAIN_TYPE_PV or LIBXL_DOMAIN_TYPE_HVM is returned can just fail or abort. Thanks and Regards, Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)