I think there's an option -Wtautological-compare or something like that which might do what you want.<br><br><div class="gmail_quote">On Mon, Jun 11, 2012 at 4:10 AM, Devchandra L Meetei <span dir="ltr"><<a href="mailto:dlmeetei@gmail.com" target="_blank">dlmeetei@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All<br>Does clang support any switch to warn about a conditional eg in if(p* !='h' || p* !='H'), which is always true. <br>
<br><br>Thankss in reply for  timely response<br><br>Warm Reagrds<br>--Dev<br>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br>