[cfe-dev] Warning at always true condition
silvas at purdue.edu
Mon Jun 11 14:06:16 PDT 2012
I think there's an option -Wtautological-compare or something like that
which might do what you want.
On Mon, Jun 11, 2012 at 4:10 AM, Devchandra L Meetei <dlmeetei at gmail.com>wrote:
> Hi All
> Does clang support any switch to warn about a conditional eg in if(p*
> !='h' || p* !='H'), which is always true.
> Thankss in reply for timely response
> Warm Reagrds
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev