From 1b98ccc4e9576e86fb3e235bac3076472a84f875 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Sat, 19 Jul 2014 01:39:17 +0000 Subject: PR20356: Fix all Sema warnings with mismatched ext_/warn_ versus ExtWarn/Warnings. Mostly the name of the warning was changed to match the semantics, but in the PR20356 cases, the warning was about valid code, so the diagnostic was changed from ExtWarn to Warning instead. llvm-svn: 213443 --- clang/lib/Sema/JumpDiagnostics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema/JumpDiagnostics.cpp') diff --git a/clang/lib/Sema/JumpDiagnostics.cpp b/clang/lib/Sema/JumpDiagnostics.cpp index f7d87882382..255845282df 100644 --- a/clang/lib/Sema/JumpDiagnostics.cpp +++ b/clang/lib/Sema/JumpDiagnostics.cpp @@ -491,7 +491,7 @@ void JumpScopeChecker::VerifyJumps() { if (GotoStmt *GS = dyn_cast(Jump)) { CheckJump(GS, GS->getLabel()->getStmt(), GS->getGotoLoc(), diag::err_goto_into_protected_scope, - diag::warn_goto_into_protected_scope, + diag::ext_goto_into_protected_scope, diag::warn_cxx98_compat_goto_into_protected_scope); continue; } @@ -501,7 +501,7 @@ void JumpScopeChecker::VerifyJumps() { LabelDecl *Target = IGS->getConstantTarget(); CheckJump(IGS, Target->getStmt(), IGS->getGotoLoc(), diag::err_goto_into_protected_scope, - diag::warn_goto_into_protected_scope, + diag::ext_goto_into_protected_scope, diag::warn_cxx98_compat_goto_into_protected_scope); continue; } -- cgit v1.2.3