Relax __attribute_((nonnull)) checking to allow the attribute on functions with no...
commit1fe3c055f22b3bce0f89977b84a5b65d7cc92789
authorTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 01:17:32 +0000 (9 01:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 9 Sep 2010 01:17:32 +0000 (9 01:17 +0000)
treefbb7acd04fb81aa6592413d3f6b9a412feaf28d1
parent1ea06ec0ed66228576ee706c528ea4b87a17f8d4
Relax __attribute_((nonnull)) checking to allow the attribute on functions with no pointer arguments.  GCC doesn't warn
in this case, and the attribute is trivially satisfied (and benign).  Fixes <rdar://problem/8364828>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113464 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDeclAttr.cpp
test/SemaObjC/nonnull.m