From 2feab0275930690caad9fcb470d71c47bf8b8352 Mon Sep 17 00:00:00 2001 From: nick black Date: Thu, 26 Aug 2021 06:12:52 -0400 Subject: [PATCH] Windows: kill last warnings #2062 --- src/lib/input.c | 2 ++ src/poc/ncwidth.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/input.c b/src/lib/input.c index fa34f508e..d55fc5688 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -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; diff --git a/src/poc/ncwidth.c b/src/poc/ncwidth.c index 109be7396..706777c09 100644 --- a/src/poc/ncwidth.c +++ b/src/poc/ncwidth.c @@ -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"); }