Fix some unused variable warnings

This commit is contained in:
ridiculousfish
2018-03-31 17:06:13 -07:00
parent 6e56637cf0
commit abcc9647da
6 changed files with 11 additions and 6 deletions

View File

@@ -270,6 +270,7 @@ int g_fish_emoji_width = 0;
int g_guessed_fish_emoji_width = 1;
int fish_get_emoji_width(wchar_t c) {
(void)c;
// Respect an explicit value. If we don't have one, use the guessed value. Do not try to fall
// back to wcwidth(), it's hopeless.
if (g_fish_emoji_width > 0) return g_fish_emoji_width;