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:
Nikos Barkas 2009-10-05 11:39:37 +00:00
parent 1a2f093de8
commit 590a50b773
2 changed files with 3 additions and 1 deletions

View File

@ -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";

View File

@ -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;