[LLVMbugs] [Bug 17290] -Wsometimes-uninitialized and -Wconditional-uninitialized give suboptimal fixit with 'bool' variables

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 19 16:33:24 PDT 2013


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|WORKSFORME                  |---

--- Comment #4 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #3)
> Works for me:
> blaikie at blaikie:~/dev/scratch$ clang++-tot -Weverything bool.c
> clang-3.3: warning: treating 'c' input as 'c++' when in C++ mode, this
> behavior is deprecated

^^ This is why it worked.

We should look for a macro named 'false', and use it if it exists (we do
something similar for 'NULL' for pointers).

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130919/db1da140/attachment.html>

More information about the llvm-bugs mailing list