Eliminated GCC 3.4.2 warnings about cases in switch statements related to commodity enumerations not being handled.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@2634 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
1a2f093de8
commit
590a50b773
@ -420,7 +420,7 @@ NSString *CommodityTypeToString(OOCommodityType commodity) // returns the commod
|
||||
CO_CASE(GOLD);
|
||||
CO_CASE(PLATINUM);
|
||||
|
||||
case CARGO_UNDEFINED:
|
||||
case COMMODITY_UNDEFINED:
|
||||
break;
|
||||
}
|
||||
return @"unknown commodity";
|
||||
|
@ -3175,6 +3175,8 @@ static BOOL IsCandidateMainStationPredicate(Entity *entity, void *parameter)
|
||||
case COMMODITY_GOLD:
|
||||
case COMMODITY_PLATINUM:
|
||||
return UNITS_KILOGRAMS;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
// default
|
||||
return UNITS_TONS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user