From: Ian Campbell Subject: Re: [PATCH 32/34] tools/libxl: list_domains: shutdown is typed unsigned Date: Thu, 27 Mar 2014 17:15:57 +0000 Message-ID: <1395940557.22909.226.camel@kazak.uk.xensource.com> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> <1395766541-23979-33-git-send-email-julien.grall@linaro.org> <5331C97C.3060009@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WTDuM-0005mZ-Jp for xen-devel@lists.xenproject.org; Thu, 27 Mar 2014 17:16:02 +0000 In-Reply-To: <5331C97C.3060009@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Stefano Stabellini , Ian Jackson , Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-25 at 18:22 +0000, Andrew Cooper wrote: > On 25/03/14 16:55, Julien Grall wrote: > > Don't need to check if shutdown is positive. > > > > Fix compilation with clang 3.5: > > xl_cmdimpl.c:3350:34: error: comparison of unsigned expression >= 0 is always true [-Werror,-Wtautological-compare] > > (shutdown_reason >= 0 && > > ~~~~~~~~~~~~~~~ ^ ~ > > Coverity-ID: 1055616 > > > Signed-off-by: Julien Grall > > Cc: Ian Jackson > > Cc: Stefano Stabellini Acked-by: Ian Campbell Although that construct looks ripe for refactoring for clarity to me. Ian.