forked from OSchip/llvm-project
move a vector conversion warning to be diabled by default (like gcc),
but add it to -Wall (unlike gcc) and give it a controlling group (-Wvector-conversions). llvm-svn: 69365
This commit is contained in:
parent
6cc68a47b5
commit
cce935edfe
|
@ -60,6 +60,7 @@ def : DiagGroup<"unused-parameter">;
|
|||
def UnusedValue : DiagGroup<"unused-value">;
|
||||
def UnusedVariable : DiagGroup<"unused-variable">;
|
||||
def : DiagGroup<"variadic-macros">;
|
||||
def VectorConversions : DiagGroup<"vector-conversions">; // clang specific
|
||||
def VolatileRegisterVar : DiagGroup<"volatile-register-var">;
|
||||
def : DiagGroup<"write-strings">;
|
||||
|
||||
|
@ -75,6 +76,7 @@ def Most : DiagGroup<"most", [
|
|||
UnknownPragmas,
|
||||
UnusedValue,
|
||||
UnusedVariable,
|
||||
VectorConversions,
|
||||
VolatileRegisterVar
|
||||
]>;
|
||||
|
||||
|
|
|
@ -1184,7 +1184,8 @@ def ext_typecheck_convert_incompatible_pointer : ExtWarn<
|
|||
def ext_typecheck_convert_discards_qualifiers : ExtWarn<
|
||||
"%2 %1 discards qualifiers, expected %0">;
|
||||
def warn_incompatible_vectors : Warning<
|
||||
"incompatible vector types %2 %1, expected %0">;
|
||||
"incompatible vector types %2 %1, expected %0">,
|
||||
InGroup<VectorConversions>, DefaultIgnore;
|
||||
def err_int_to_block_pointer : Error<
|
||||
"invalid conversion %2 integer %1, expected block pointer %0">;
|
||||
def err_typecheck_comparison_of_distinct_blocks : Error<
|
||||
|
|
Loading…
Reference in New Issue