Permalink
Browse files

Fixing a compilation warning about unused baseInfo.

  • Loading branch information...
1 parent f44b6c0 commit 9bbfa905ef34886585526f06a8b2c7482097f172 @shouze shouze committed May 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 DDMathParser/_DDOperatorInfo.m
View
3 DDMathParser/_DDOperatorInfo.m
@@ -51,9 +51,10 @@ + (NSArray *)infosForOperatorFunction:(NSString *)operator {
}
// this is to make sure all of the operators are defined correctly
+ _DDOperatorInfo *baseInfo = nil;
for (NSString *functionName in _operatorLookup) {
NSArray *operatorInfos = [_operatorLookup objectForKey:functionName];
- _DDOperatorInfo *baseInfo = [operatorInfos lastObject];
+ baseInfo = [operatorInfos lastObject];
for (_DDOperatorInfo *info in operatorInfos) {
NSAssert([info precedence] == [baseInfo precedence], @"mismatched operator precedences");
NSAssert([info arity] == [baseInfo arity], @"mismatched operator arity");

0 comments on commit 9bbfa90

Please sign in to comment.