]> granicus.if.org Git - clang/commit
Remove -Wsigned-enum-bitfield from -Wmost. On a wide set of ABIs, this warning
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Nov 2016 02:16:09 +0000 (02:16 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Nov 2016 02:16:09 +0000 (02:16 +0000)
commitf090048c44457c251865b9ed957513f1561a2e12
tree65ae6b8a2d45b9968b9042f9dcd6732572142764
parent62c5024ae0e6a77daee77e146f920967733359fb
Remove -Wsigned-enum-bitfield from -Wmost. On a wide set of ABIs, this warning
is completely irrelevant, producing (effectively) false positives, and -Wmost
is used pretty widely. We should somehow turn it back on by default when
targeting the MS ABI, however, since it indicates the program will not do as
intended in those cases.

(Or perhaps we should just treat enum bitfields as having the signedness of the
enum, even when targeting the MS ABI...)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287193 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td