]> granicus.if.org Git - clang/commitdiff
Fix warnings
authorSeo Sanghyeon <sanxiyn@gmail.com>
Sat, 5 Jul 2008 02:01:25 +0000 (02:01 +0000)
committerSeo Sanghyeon <sanxiyn@gmail.com>
Sat, 5 Jul 2008 02:01:25 +0000 (02:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53141 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Rewrite/RewriteRope.h
lib/Sema/SemaDeclObjC.cpp

index ad7bb735d6f0a86d956fe2e8899e7325f145000b..7faa451290e402ca13153ab18e9b9d7e3ce8a781 100644 (file)
@@ -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];
     }
     
index 09f1179112483440cb61d122de5ed6e9bf7637fe..5b6bd104a90b9aebee38e37dacfa3fc3beaead58 100644 (file)
@@ -830,7 +830,7 @@ void Sema::ActOnAtEnd(SourceLocation AtEndLoc, DeclTy *classDecl,
          || 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 @@ 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 =