xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0 of 1 v5] Fix build failure with gcc's -Werror=switch
@ 2012-06-04 17:23 Dario Faggioli
  2012-06-04 17:23 ` [PATCH 1 of 1 v5] libxl: introduce LIBXL_DOMAIN_TYPE_INVALID Dario Faggioli
  0 siblings, 1 reply; 8+ messages in thread
From: Dario Faggioli @ 2012-06-04 17:23 UTC (permalink / raw)
  To: xen-devel; +Cc: Christoph Egger, Ian Jackson, Ian Campbell, Roger Pau Monne

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

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-06-06 11:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-04 17:23 [PATCH 0 of 1 v5] Fix build failure with gcc's -Werror=switch Dario Faggioli
2012-06-04 17:23 ` [PATCH 1 of 1 v5] libxl: introduce LIBXL_DOMAIN_TYPE_INVALID Dario Faggioli
2012-06-06 10:43   ` Ian Jackson
2012-06-06 11:11     ` Dario Faggioli
2012-06-06 10:47   ` Ian Jackson
2012-06-06 10:56     ` Ian Campbell
2012-06-06 11:15       ` Dario Faggioli
2012-06-06 11:10     ` Dario Faggioli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).