diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-08-12 18:48:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-08-12 18:48:43 +0000 |
commit | c9ef405559c90fc98b016d00aeae8afbc31c6bf6 (patch) | |
tree | 5cefbcf7f1f8012758fda1fd3af06d79139f4630 /lib/Sema/SemaDeclAttr.cpp | |
parent | f128b858871748d6342bc394af28ea4955b826be (diff) |
Downgrade error about nonnull attribute bbeing applied to a function without point arguments to a warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110939 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 54ffa95ce1..b26fd64719 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -321,7 +321,7 @@ static void HandleNonNullAttr(Decl *d, const AttributeList &Attr, Sema &S) { QualType T = getFunctionOrMethodArgType(d, x); if (!T->isAnyPointerType() && !T->isBlockPointerType()) { // FIXME: Should also highlight argument in decl. - S.Diag(Attr.getLoc(), diag::err_nonnull_pointers_only) + S.Diag(Attr.getLoc(), diag::warn_nonnull_pointers_only) << "nonnull" << Ex->getSourceRange(); continue; } |