Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing a compilation warning about unused baseInfo.

  • Loading branch information...
commit 9bbfa905ef34886585526f06a8b2c7482097f172 1 parent f44b6c0
@shouze shouze authored
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");
Please sign in to comment.
Something went wrong with that request. Please try again.