From 68a57186fadb1aea91ef588c8d7ee3813acce1b0 Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Sat, 13 Sep 2014 20:09:44 +0000 Subject: [PATCH 02/10] libxl: shutdown_reason cannot be unsigned shutdown_reason may be negative, so don't cast it onto (unsigned int). Clang complains: xl_cmdimpl.c:3313:34: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] Signed-off-by: Marcin Cieslak --- tools/libxl/xl_cmdimpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 698b3bc..d9e976f 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -3306,7 +3306,7 @@ static void list_domains(int verbose, int context, int claim, int numa, printf("\n"); for (i = 0; i < nb_domain; i++) { char *domname; - unsigned shutdown_reason; + int shutdown_reason; domname = libxl_domid_to_name(ctx, info[i].domid); shutdown_reason = info[i].shutdown ? info[i].shutdown_reason : 0; printf("%-40s %5d %5lu %5d %c%c%c%c%c%c %8.1f", -- 2.0.2