diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-07-19 01:39:17 +0000 |
| commit | 1b98ccc4e9576e86fb3e235bac3076472a84f875 (patch) | |
| tree | 2a47686d41ac218fd7c65dea3321790f383a15e1 /clang/lib/Sema/SemaInit.cpp | |
| parent | c4e00289a78116aefc8db41979d747ab27c4bd44 (diff) | |
| download | bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.tar.gz bcm5719-llvm-1b98ccc4e9576e86fb3e235bac3076472a84f875.zip | |
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
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 7c596b673b7..3aa46ea1df6 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -189,7 +189,7 @@ static void CheckStringInit(Expr *Str, QualType &DeclT, const ArrayType *AT, // C99 6.7.8p14. if (StrLength-1 > CAT->getSize().getZExtValue()) S.Diag(Str->getLocStart(), - diag::warn_initializer_string_for_char_array_too_long) + diag::ext_initializer_string_for_char_array_too_long) << Str->getSourceRange(); } @@ -788,7 +788,7 @@ void InitListChecker::CheckExplicitInitList(const InitializedEntity &Entity, if (StructuredIndex == 1 && IsStringInit(StructuredList->getInit(0), T, SemaRef.Context) == SIF_None) { - unsigned DK = diag::warn_excess_initializers_in_char_array_initializer; + unsigned DK = diag::ext_excess_initializers_in_char_array_initializer; if (SemaRef.getLangOpts().CPlusPlus) { DK = diag::err_excess_initializers_in_char_array_initializer; hadError = true; @@ -807,7 +807,7 @@ void InitListChecker::CheckExplicitInitList(const InitializedEntity &Entity, CurrentObjectType->isUnionType()? 3 : 4; - unsigned DK = diag::warn_excess_initializers; + unsigned DK = diag::ext_excess_initializers; if (SemaRef.getLangOpts().CPlusPlus) { DK = diag::err_excess_initializers; hadError = true; |

