From: Seo Sanghyeon Date: Sat, 5 Jul 2008 02:01:25 +0000 (+0000) Subject: Fix warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe5042e287352d00db89508bf3c1373cc44b85db;p=clang Fix warnings git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53141 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Rewrite/RewriteRope.h b/include/clang/Rewrite/RewriteRope.h index ad7bb735d6..7faa451290 100644 --- a/include/clang/Rewrite/RewriteRope.h +++ b/include/clang/Rewrite/RewriteRope.h @@ -116,7 +116,7 @@ namespace clang { // end iterator RopePieceBTreeIterator() : CurNode(0), CurPiece(0), CurChar(0) {} - const char operator*() const { + char operator*() const { return (*CurPiece)[CurChar]; } diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp index 09f1179112..5b6bd104a9 100644 --- a/lib/Sema/SemaDeclObjC.cpp +++ b/lib/Sema/SemaDeclObjC.cpp @@ -830,7 +830,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl, || isa(ClassDecl); bool checkIdenticalMethods = isa(ClassDecl); - if (pNum != 0) + if (pNum != 0) { if (ObjCInterfaceDecl *IDecl = dyn_cast(ClassDecl)) IDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum); else if (ObjCCategoryDecl *CDecl = dyn_cast(ClassDecl)) @@ -839,6 +839,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl, PDecl->addProperties((ObjCPropertyDecl**)allProperties, pNum); else assert(false && "ActOnAtEnd - property declaration misplaced"); + } for (unsigned i = 0; i < allNum; i++ ) { ObjCMethodDecl *Method =