X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fwin32con%2Fwin32_driver.c;h=45aadf2f596a3845a79cb99824e40780b903c5fc;hp=9797cdb3f04334928827d6fb24cd18c3fb5a5929;hb=0af9283ca273c267ee6036c3b88115d9ba6d55a6;hpb=1f7a36fe16b11bb4aab51be89bbc1b0f75936b78 diff --git a/ncurses/win32con/win32_driver.c b/ncurses/win32con/win32_driver.c index 9797cdb3..45aadf2f 100644 --- a/ncurses/win32con/win32_driver.c +++ b/ncurses/win32con/win32_driver.c @@ -48,7 +48,7 @@ #define CUR TerminalType(my_term). -MODULE_ID("$Id: win32_driver.c,v 1.1 2020/08/29 19:26:24 tom Exp $") +MODULE_ID("$Id: win32_driver.c,v 1.2 2020/11/21 23:35:56 tom Exp $") #define WINMAGIC NCDRV_MAGIC(NCDRV_WINCONSOLE) #define EXP_OPTIMIZE 0 @@ -671,6 +671,7 @@ wcon_setcolor(TERMINAL_CONTROL_BLOCK * TCB, int color, int (*outc) (SCREEN *, int) GCC_UNUSED) { + (void) TCB; if (validateConsoleHandle()) { WORD a = _nc_console_MapColor(fore, color); a |= (WORD) ((WINCONSOLE.SBI.wAttributes) & (fore ? 0xfff8 : 0xff8f)); @@ -684,6 +685,7 @@ wcon_rescol(TERMINAL_CONTROL_BLOCK * TCB) { bool res = FALSE; + (void) TCB; if (validateConsoleHandle()) { WORD a = FOREGROUND_BLUE | FOREGROUND_RED | FOREGROUND_GREEN; SetConsoleTextAttribute(WINCONSOLE.hdl, a); @@ -732,7 +734,6 @@ wcon_setsize(TERMINAL_CONTROL_BLOCK * TCB GCC_UNUSED, static int wcon_sgmode(TERMINAL_CONTROL_BLOCK * TCB, int setFlag, TTY * buf) { - TERMINAL *_term = (TERMINAL *) TCB; int result = ERR; T((T_CALLED("win32con::wcon_sgmode(TCB=(%p),setFlag=%d,TTY=(%p)"), @@ -961,6 +962,8 @@ wcon_mvcur(TERMINAL_CONTROL_BLOCK * TCB, int y, int x) { int ret = ERR; + + (void) TCB; if (validateConsoleHandle()) { COORD loc; loc.X = (short) x;