diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-12-05 23:06:53 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-12-05 23:06:53 +0000 |
commit | e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01 (patch) | |
tree | d37767ec45aaa7ae24fc116fdfa335cd0f320408 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 00fe87b4888b230325edd96a4c2df866d91da64e (diff) | |
download | llvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.zip llvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.tar.gz llvm-e6ac50ad71b7dd63e5b746fce9eb3a1e76debb01.tar.bz2 |
-Wassign-enum: compare unqualified types
This commit changes -Wassign-enum to compare unqualified types. One could
think that this does not matter much, because who wants a value of enum type
that is const-qualified? But this breaks the intended pattern to silence this
warning with an explicit cast:
static const enum Foo z = (enum Foo) 42;
In this case, source type is 'enum Foo', and destination type is 'const enum
Foo', and if we compare qualified types, they don't match, so we used warn.
llvm-svn: 196548
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions