diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-06 05:24:12 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-06 05:24:12 +0000 |
commit | 35de813674503b87ec5117b6492cc0a4ef7d8728 (patch) | |
tree | ed967e05d402648a4f0855bd1bf9d7ce9169af16 /include/clang/Basic | |
parent | 5e1b91875c275f0ec50d3680afbac150d684fdba (diff) |
Turn off -Wsign-compare warnings by default
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticGroups.td | 3 | ||||
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Basic/DiagnosticGroups.td b/include/clang/Basic/DiagnosticGroups.td index 8cfdd40950..2a998d17c6 100644 --- a/include/clang/Basic/DiagnosticGroups.td +++ b/include/clang/Basic/DiagnosticGroups.td @@ -70,7 +70,7 @@ def ReturnType : DiagGroup<"return-type">; def : DiagGroup<"sequence-point">; def : DiagGroup<"shadow">; def : DiagGroup<"shorten-64-to-32">; -def : DiagGroup<"sign-compare">; +def SignCompare : DiagGroup<"sign-compare">; // Preprocessor warnings. def : DiagGroup<"builtin-macro-redefined">; @@ -129,6 +129,7 @@ def Format2 : DiagGroup<"format=2", def Extra : DiagGroup<"extra", [ + SignCompare, UnusedParameter ]>; diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index e825e6e826..729395a32a 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -1542,10 +1542,10 @@ def err_stmtexpr_file_scope : Error< "statement expression not allowed at file scope">; def warn_mixed_sign_comparison : Warning< "comparison of integers of different signs: %0 and %1">, - InGroup<DiagGroup<"sign-compare">>; + InGroup<DiagGroup<"sign-compare">>, DefaultIgnore; def warn_mixed_sign_conditional : Warning< "operands of ? are integers of different signs: %0 and %1">, - InGroup<DiagGroup<"sign-compare">>; + InGroup<DiagGroup<"sign-compare">>, DefaultIgnore; def err_invalid_this_use : Error< "invalid use of 'this' outside of a nonstatic member function">; |