comparison src/os_win32.c @ 18139:59bc3cd42cf5 v8.1.2064

patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Commit: https://github.com/vim/vim/commit/bd67aac279adf3a1cfa11557229b44e4c2c3dcda Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 21 23:09:04 2019 +0200 patch 8.1.2064: MS-Windows: compiler warnings for unused arguments Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4963)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Sep 2019 23:15:03 +0200
parents d683b2c82c00
children 2ededa437271
comparison
equal deleted inserted replaced
18138:28c9188517bc 18139:59bc3cd42cf5
363 */ 363 */
364 static BOOL 364 static BOOL
365 peek_console_input( 365 peek_console_input(
366 HANDLE hInput, 366 HANDLE hInput,
367 INPUT_RECORD *lpBuffer, 367 INPUT_RECORD *lpBuffer,
368 DWORD nLength, 368 DWORD nLength UNUSED,
369 LPDWORD lpEvents) 369 LPDWORD lpEvents)
370 { 370 {
371 return read_console_input(hInput, lpBuffer, -1, lpEvents); 371 return read_console_input(hInput, lpBuffer, -1, lpEvents);
372 } 372 }
373 373
1004 decode_key_event( 1004 decode_key_event(
1005 KEY_EVENT_RECORD *pker, 1005 KEY_EVENT_RECORD *pker,
1006 WCHAR *pch, 1006 WCHAR *pch,
1007 WCHAR *pch2, 1007 WCHAR *pch2,
1008 int *pmodifiers, 1008 int *pmodifiers,
1009 BOOL fDoPost) 1009 BOOL fDoPost UNUSED)
1010 { 1010 {
1011 int i; 1011 int i;
1012 const int nModifs = pker->dwControlKeyState & (SHIFT | ALT | CTRL); 1012 const int nModifs = pker->dwControlKeyState & (SHIFT | ALT | CTRL);
1013 1013
1014 *pch = *pch2 = NUL; 1014 *pch = *pch2 = NUL;
4484 } 4484 }
4485 #endif 4485 #endif
4486 4486
4487 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) 4487 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
4488 static int 4488 static int
4489 mch_system_c(char *cmd, int options) 4489 mch_system_c(char *cmd, int options UNUSED)
4490 { 4490 {
4491 int ret; 4491 int ret;
4492 WCHAR *wcmd; 4492 WCHAR *wcmd;
4493 4493
4494 wcmd = enc_to_utf16((char_u *)cmd, NULL); 4494 wcmd = enc_to_utf16((char_u *)cmd, NULL);
6454 6454
6455 /* 6455 /*
6456 * Check for an "interrupt signal": CTRL-break or CTRL-C. 6456 * Check for an "interrupt signal": CTRL-break or CTRL-C.
6457 */ 6457 */
6458 void 6458 void
6459 mch_breakcheck(int force) 6459 mch_breakcheck(int force UNUSED)
6460 { 6460 {
6461 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) 6461 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
6462 # ifdef VIMDLL 6462 # ifdef VIMDLL
6463 if (!gui.in_use) 6463 if (!gui.in_use)
6464 # endif 6464 # endif
7216 7216
7217 set_alist_count(); 7217 set_alist_count();
7218 } 7218 }
7219 7219
7220 int 7220 int
7221 mch_setenv(char *var, char *value, int x) 7221 mch_setenv(char *var, char *value, int x UNUSED)
7222 { 7222 {
7223 char_u *envbuf; 7223 char_u *envbuf;
7224 WCHAR *p; 7224 WCHAR *p;
7225 7225
7226 envbuf = alloc(STRLEN(var) + STRLEN(value) + 2); 7226 envbuf = alloc(STRLEN(var) + STRLEN(value) + 2);