Skip to content
Snippets Groups Projects
Commit de4e3abd authored by rswindell's avatar rswindell
Browse files

Fix a bunch of enumeration value '...' not handled in switch GCC warnings

in unicode_width().
parent 999d7a45
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@ enum unicode_codepoint cp437_unicode_tbl[] =
size_t unicode_width(enum unicode_codepoint u)
{
switch(u) {
case UNICODE_UNDEFINED:
case UNICODE_ZERO_WIDTH_SPACE:
case UNICODE_ZERO_WIDTH_NON_JOINER:
case UNICODE_ZERO_WIDTH_JOINER:
......@@ -333,8 +334,9 @@ size_t unicode_width(enum unicode_codepoint u)
case UNICODE_ZERO_WIDTH_NO_BREAK_SPACE:
return 0;
/* TODO: return 2 for "fullwdith" chars */
default:
return 1;
}
return 1;
}
char unicode_to_cp437(enum unicode_codepoint codepoint)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment