Windows: kill last warnings #2062

This commit is contained in:
nick black 2021-08-26 06:12:52 -04:00
parent 6d72fedca9
commit 2feab02759
2 changed files with 3 additions and 1 deletions

View File

@ -443,6 +443,8 @@ handle_getc(ncinputlayer* nc, int kpress, ncinput* ni, int leftmargin, int topma
static int
block_on_input(int fd, const struct timespec* ts){
#ifdef __MINGW64__
(void)fd;
// FIXME pull cached value out of tinfo
HANDLE in = GetStdHandle(STD_INPUT_HANDLE);
if(in == INVALID_HANDLE_VALUE){
return -1;

View File

@ -28,7 +28,7 @@ defaultout(void){
for(int i = 0 ; i < 128 ; ++i){
wchar_t w = i;
int width = wcwidth(w);
printf("0x%02x: %d%c\t", i, width, width < 0 ? '!' : ' ');
printf("0x%02x: %d%c\t", w, width, width < 0 ? '!' : ' ');
if(i % 4 == 3){
printf("\n");
}