diff options
author | Jordy Rose <jediknil@belkadan.com> | 2012-05-08 03:27:22 +0000 |
---|---|---|
committer | Jordy Rose <jediknil@belkadan.com> | 2012-05-08 03:27:22 +0000 |
commit | 740b0c297c3616643a0018c5d145721db82ba8dd (patch) | |
tree | 0b63906763b095625b969eaea9e7d1b62c634fb7 | |
parent | 675d541ab615c4a5f28b1d791c9f8c2f7fc8cd27 (diff) | |
download | bcm5719-llvm-740b0c297c3616643a0018c5d145721db82ba8dd.tar.gz bcm5719-llvm-740b0c297c3616643a0018c5d145721db82ba8dd.zip |
Clean up SemaDeclAttr for high-warnings build.
Includes a real potential initialization problem.
llvm-svn: 156363
-rw-r--r-- | clang/lib/Sema/SemaDeclAttr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index eb26a98f555..223e517c1ff 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -300,8 +300,8 @@ static const RecordType *getRecordType(QualType QT) { } -bool checkBaseClassIsLockableCallback(const CXXBaseSpecifier *Specifier, - CXXBasePath &Path, void *UserData) { +static bool checkBaseClassIsLockableCallback(const CXXBaseSpecifier *Specifier, + CXXBasePath &Path, void *Unused) { const RecordType *RT = Specifier->getType()->getAs<RecordType>(); if (RT->getDecl()->getAttr<LockableAttr>()) return true; @@ -1690,11 +1690,11 @@ static void handleObjCRequiresPropertyDefsAttr(Sema &S, Decl *D, Attr.getRange(), S.Context)); } -bool checkAvailabilityAttr(Sema &S, SourceRange Range, - IdentifierInfo *Platform, - VersionTuple Introduced, - VersionTuple Deprecated, - VersionTuple Obsoleted) { +static bool checkAvailabilityAttr(Sema &S, SourceRange Range, + IdentifierInfo *Platform, + VersionTuple Introduced, + VersionTuple Deprecated, + VersionTuple Obsoleted) { StringRef PlatformName = AvailabilityAttr::getPrettyPlatformName(Platform->getName()); if (PlatformName.empty()) @@ -1868,7 +1868,7 @@ static void handleVisibilityAttr(Sema &S, Decl *D, const AttributeList &Attr) { } // Find the last Decl that has an attribute. - VisibilityAttr *PrevAttr; + VisibilityAttr *PrevAttr = 0; assert(D->redecls_begin() == D); for (Decl::redecl_iterator I = D->redecls_begin(), E = D->redecls_end(); I != E; ++I) { |