summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-05 19:26:49 +0000
committerChris Lattner <sabre@nondot.org>2010-03-05 19:26:49 +0000
commitfc3a0700bd63716b89eaabfd6a3da34019ffdb2e (patch)
treebdf9e54d3683e4fdbd72408e0227f486fbde9c37 /include
parentfbcc071d63d82cbe4f197843ce369b70c2fc1c1d (diff)
downloadclang-fc3a0700bd63716b89eaabfd6a3da34019ffdb2e.tar.gz
clang-fc3a0700bd63716b89eaabfd6a3da34019ffdb2e.tar.bz2
clang-fc3a0700bd63716b89eaabfd6a3da34019ffdb2e.tar.xz
address PR6502 by downgrading the scope checker's address
of label error to a warning controllable with a -W flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 9f77655052..01317de1b2 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -1589,9 +1589,9 @@ def err_switch_into_protected_scope : Error<
"illegal switch case into protected scope">;
def err_indirect_goto_in_protected_scope : Error<
"illegal indirect goto in protected scope, unknown effect on scopes">;
-def err_addr_of_label_in_protected_scope : Error<
+def err_addr_of_label_in_protected_scope : Warning<
"address taken of label in protected scope, jump to it would have "
- "unknown effect on scope">;
+ "unknown effect on scope">, InGroup<DiagGroup<"label-address-scope">>;
def note_protected_by_variable_init : Note<
"jump bypasses variable initialization">;
def note_protected_by_vla_typedef : Note<