Fixed GEOM_UNKNOWN warning

This commit is contained in:
Alex Zolotarev 2011-05-12 18:19:06 +02:00 committed by Alex Zolotarev
parent 4b7081f127
commit e1fb46711b
2 changed files with 6 additions and 0 deletions

View file

@ -109,6 +109,8 @@ uint8_t FeatureParams::GetHeader() const
header |= HEADER_GEOM_AREA;
if (!house.IsEmpty()) header |= HEADER_HAS_ADDINFO;
break;
default:
ASSERT(false, ("Undefined geometry type"));
}
return header;

View file

@ -76,6 +76,8 @@ struct FeatureParamsBase
case feature::GEOM_AREA:
house.Write(sink);
break;
default:
ASSERT(false, ("Undefined geometry type"));
}
}
}
@ -102,6 +104,8 @@ struct FeatureParamsBase
case feature::GEOM_AREA:
house.Read(src);
break;
default:
ASSERT(false, ("Undefined geometry type"));
}
}
}