[cfe-commits] r53141 - in /cfe/trunk: include/clang/Rewrite/RewriteRope.h lib/Sema/SemaDeclObjC.cpp
Seo Sanghyeon
sanxiyn at gmail.com
Fri Jul 4 19:01:25 PDT 2008
Author: sanxiyn
Date: Fri Jul 4 21:01:25 2008
New Revision: 53141
URL: http://llvm.org/viewvc/llvm-project?rev=53141&view=rev
Log:
Fix warnings
Modified:
cfe/trunk/include/clang/Rewrite/RewriteRope.h
cfe/trunk/lib/Sema/SemaDeclObjC.cpp
Modified: cfe/trunk/include/clang/Rewrite/RewriteRope.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Rewrite/RewriteRope.h?rev=53141&r1=53140&r2=53141&view=diff
==============================================================================
--- cfe/trunk/include/clang/Rewrite/RewriteRope.h (original)
+++ cfe/trunk/include/clang/Rewrite/RewriteRope.h Fri Jul 4 21:01:25 2008
@@ -116,7 +116,7 @@
// end iterator
RopePieceBTreeIterator() : CurNode(0), CurPiece(0), CurChar(0) {}
- const char operator*() const {
+ char operator*() const {
return (*CurPiece)[CurChar];
}
Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=53141&r1=53140&r2=53141&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Fri Jul 4 21:01:25 2008
@@ -830,7 +830,7 @@
|| isa<ObjCProtocolDecl>(ClassDecl);
bool checkIdenticalMethods = isa<ObjCImplementationDecl>(ClassDecl);
- if (pNum != 0)
+ if (pNum != 0) {
if (ObjCInterfaceDecl *IDecl = dyn_cast<ObjCInterfaceDecl>(ClassDecl))
IDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum);
else if (ObjCCategoryDecl *CDecl = dyn_cast<ObjCCategoryDecl>(ClassDecl))
@@ -839,6 +839,7 @@
PDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum);
else
assert(false && "ActOnAtEnd - property declaration misplaced");
+ }
for (unsigned i = 0; i < allNum; i++ ) {
ObjCMethodDecl *Method =
More information about the cfe-commits
mailing list