aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td4
-rw-r--r--test/Sema/scope-check.c2
2 files changed, 3 insertions, 3 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<
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c
index 7d293f2747..1df0186d90 100644
--- a/test/Sema/scope-check.c
+++ b/test/Sema/scope-check.c
@@ -146,7 +146,7 @@ L4:
void *Ptrs[] = {
&&L2, // Ok.
- &&L3 // expected-error {{address taken of label in protected scope, jump to it would have unknown effect on scope}}
+ &&L3 // expected-warning {{address taken of label in protected scope, jump to it would have unknown effect on scope}}
};
}