kill compilation warnings on alpine

This commit is contained in:
nick black 2021-12-12 15:33:02 -05:00
parent 53c95b6d86
commit c067527c28
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ wvizn(struct ncplane* n, const wchar_t* wp, int nnn){
}
static int
braille_viz(struct ncplane* n, wchar_t l, const wchar_t* egcs, wchar_t r,
braille_viz(struct ncplane* n, wint_t l, const wchar_t* egcs, wchar_t r,
const char* indent, const wchar_t* bounds, wchar_t r8, wchar_t l8,
const wchar_t* trailer){
ncplane_printf(n, "%s%lc", indent, l);

View File

@ -26,7 +26,7 @@ add_wchar(wchar_t** wbuf, size_t* bufsize, size_t* used, wchar_t wc){
static int
defaultout(void){
for(int i = 0 ; i < 128 ; ++i){
wchar_t w = i;
wint_t w = i;
int width = wcwidth(w);
printf("0x%02x: %d%c\t", w, width, width < 0 ? '!' : ' ');
if(i % 4 == 3){