|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] clang Warning - revisited |
Date: | Mon, 21 Apr 2014 12:24:53 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 |
Hi Vladimir,
thanks. Not sure if you can do anything about the text of the warning, If so, then my proposal would be "comparison may always be true because all declarators in enum XXX are smaller than int 10" or so. /// Jürgen On 04/21/2014 09:19 AM, Vladimir Ur wrote: Juergen, hmm, ok. I agree that warning text is too strict and may be misleading. But I think it is so not because of type cast in comparison (byte <= UCHAR_MAX should also be always true, even if byte promoted to int), but because enum is at least int by definition in standard. Anyway thank you for great project. On Sun, 20 Apr 2014 11:54:53 +0200 Juergen Sauermann <address@hidden> wrote: |
[Prev in Thread] | Current Thread | [Next in Thread] |