[llvm-bugs] [Bug 51905] New: Enable -Wundefined-reinterpret-cast by default or at least with -Wall/-Wextra

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 18 19:25:39 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=51905

            Bug ID: 51905
           Summary: Enable -Wundefined-reinterpret-cast by default or at
                    least with -Wall/-Wextra
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nok.raven at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

The message in commit
https://github.com/llvm/llvm-project/commit/0dc3f8db1a10d534a8b562d3db727261aa18931a
(from 2011) says:

> This was the actual cause of the only false positive in Clang+LLVM.
> 
> Next evaluation will be over a much larger selection of code including
> large amounts of open source code.

but I couldn't find what happened after.

Some projects with the warning enabled:
https://chromium.googlesource.com/angle/angle/+/458389f249b0b68f430d7fe954c21205d22cd33e/BUILD.gn#200
https://github.com/mysql/mysql-server/blob/beb865a960b9a8a16cf999c323e46c5b0c67f21f/cmake/maintainer.cmake#L108
https://github.com/OpenSpace/OpenSpace/blob/db472030de710180ff96c9c8c707c19ef3bcfe41/support/cmake/set_openspace_compile_settings.cmake#L155

-- 
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/20210919/a02fc8b8/attachment.html>


More information about the llvm-bugs mailing list