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 | fad5de9d674521017460f8445e2f81e2a1086290 (patch) | |
tree | 944b366c31c26da21afe02f43e94d87f76326181 /lib/Sema/SemaDeclAttr.cpp | |
parent | 2cbc12fa24482889159926aab79e361ebe2e7f91 (diff) |
Clean up SemaDeclAttr for high-warnings build.
Includes a real potential initialization problem.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index eb26a98f55..223e517c1f 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/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) { |