From 061eddff91294b78a92bd8f71bf463ae61bc3ada Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 1 Feb 2014 13:49:28 +0100 Subject: [PATCH] Silence uninitialized variable warning in wcrtomb(3). --- libc/wchar/wcrtomb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/wchar/wcrtomb.cpp b/libc/wchar/wcrtomb.cpp index f684e498..ae620d05 100644 --- a/libc/wchar/wcrtomb.cpp +++ b/libc/wchar/wcrtomb.cpp @@ -60,6 +60,7 @@ size_t wcrtomb(char* restrict s, wchar_t wc, mbstate_t* restrict /*ps*/) case 4: prefixavai = 3; prefix = 0b11110U << prefixavai; break; case 5: prefixavai = 2; prefix = 0b111110U << prefixavai; break; case 6: prefixavai = 1; prefix = 0b1111110U << prefixavai; break; + default: __builtin_unreachable(); } // Put the first bits in the unused area of the prefix.