Browse files

Handle Unkown enum declaration in switch

  • Loading branch information...
1 parent bda6e48 commit 8433bd8022212a1a40682707657fc1722a01283f @gierschv gierschv committed Sep 4, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 gsmlib/gsm_cb.cc
View
5 gsmlib/gsm_cb.cc
@@ -35,7 +35,7 @@ CBDataCodingScheme::CBDataCodingScheme(unsigned char dcs) : _dcs(dcs)
_language = (Language)_dcs;
}
else
- _language = Unknown;
+ _language = (Language)Unknown;
}
std::string CBDataCodingScheme::toString() const
@@ -84,6 +84,9 @@ std::string CBDataCodingScheme::toString() const
case Turkish:
result += _("Turkish");
break;
+ case Unknown:
+ result += _("Unknown");
+ break;
}
result += " ";
switch (getAlphabet())

0 comments on commit 8433bd8

Please sign in to comment.