r210372 - Add -Wtautological-undefined-compare and -Wundefined-bool-conversion warnings

Chandler Carruth chandlerc at google.com
Thu Jun 12 12:22:55 PDT 2014


On Thu, Jun 12, 2014 at 8:21 PM, Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
wrote:

> FYI, I've worked on at least two commercial products which contained
> constructs similar to
>
>     void Crash() { *(volatile int*)0 = 42; }
>

This doesn't really bind a reference, and we exempt volatile things from
the null pointer warnings we already have so it seems like this would just
follow suit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140612/e20b0ac5/attachment.html>


More information about the cfe-commits mailing list