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. This fixes the build error with gcc 4.5.3 reported here: http://lists.xen.org/archives/html/xen-devel/2012-05/msg01269.html Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85689 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632