Commits

Anonymous committed 66feaf6

Fixed build errors in 10.6

  • Participants
  • Parent commits b776363

Comments (0)

Files changed (3)

Source/HgConfigFile.m

     NSLog(@"Reading config file %@",_path);
     _stanzas = [NSMutableDictionary dictionary];
 
-    NSString *contents = [NSString stringWithContentsOfFile: _path];
+    NSStringEncoding encoding;
+    NSString *contents = [NSString stringWithContentsOfFile: _path usedEncoding: &encoding error: nil];
     if( ! contents )
         return;
     

Source/HgRepository.m

 - (HgRevision*) currentRevision
 {
     if( ! _revisions )
-        self.revisions;
+        (void)self.revisions;
     return _currentRevision;
 }
 

Source/HgRevision.m

 - (HgFile*) fileAtPath: (NSString*)path
 {
     if( ! _root )
-        self.root;
+        (void)self.root;
     return [_root fileAtPath: path];
 }