diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-01 13:43:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-01 13:43:36 +0100 |
commit | 1266d678bf2ed5072cca9381409536406f8d7b32 (patch) | |
tree | 77b5147921fbb1564b30e05c0a446d39b84ec0c8 /src/os_mswin.c | |
parent | 7c23d1d9d9cc1d3d19fe35708da7c5d5b3556e05 (diff) | |
download | vim-git-1266d678bf2ed5072cca9381409536406f8d7b32.tar.gz |
patch 8.0.0281: some files are still using ARGSUSED instead of UNUSEDv8.0.0281
Problem: MS-Windows files are still using ARGSUSED while most other files
have UNUSED.
Solution: Change ARGSUSED to UNUSED or delete it.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index 408438ed7..14fe8c6a2 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -306,10 +306,8 @@ mch_settitle( * 2: Just restore icon (which we don't have) * 3: Restore title and icon (which we don't have) */ -/*ARGSUSED*/ void -mch_restore_title( - int which) +mch_restore_title(int which UNUSED) { #ifndef FEAT_GUI_MSWIN SetConsoleTitle(g_szOrigTitle); @@ -345,13 +343,12 @@ mch_can_restore_icon(void) * When 'shellslash' set do it the other way around. * Return OK or FAIL. */ -/*ARGSUSED*/ int mch_FullName( char_u *fname, char_u *buf, int len, - int force) + int force UNUSED) { int nResult = FAIL; @@ -636,9 +633,8 @@ vim_stat(const char *name, stat_T *stp) } #if defined(FEAT_GUI_MSWIN) || defined(PROTO) -/*ARGSUSED*/ void -mch_settmode(int tmode) +mch_settmode(int tmode UNUSED) { /* nothing to do */ } @@ -817,10 +813,8 @@ mch_char_avail(void) /* * set screen mode, always fails. */ -/*ARGSUSED*/ int -mch_screenmode( - char_u *arg) +mch_screenmode(char_u *arg UNUSED) { EMSG(_(e_screenmode)); return FAIL; @@ -996,10 +990,8 @@ mch_libcall( /* * Debugging helper: expose the MCH_WRITE_DUMP stuff to other modules */ -/*ARGSUSED*/ void -DumpPutS( - const char *psz) +DumpPutS(const char *psz UNUSED) { # ifdef MCH_WRITE_DUMP if (fdDump) @@ -1173,9 +1165,12 @@ swap_me(COLORREF colorref) # define PDP_RETVAL INT_PTR #endif -/*ARGSUSED*/ static PDP_RETVAL CALLBACK -PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) +PrintDlgProc( + HWND hDlg, + UINT message, + WPARAM wParam UNUSED, + LPARAM lParam UNUSED) { #ifdef FEAT_GETTEXT NONCLIENTMETRICS nm; @@ -1236,9 +1231,8 @@ PrintDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) return FALSE; } -/*ARGSUSED*/ static BOOL CALLBACK -AbortProc(HDC hdcPrn, int iCode) +AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED) { MSG msg; @@ -1683,9 +1677,8 @@ mch_print_begin(prt_settings_T *psettings) return (ret > 0); } -/*ARGSUSED*/ void -mch_print_end(prt_settings_T *psettings) +mch_print_end(prt_settings_T *psettings UNUSED) { EndDoc(prt_dlg.hDC); if (!*bUserAbort) @@ -2764,12 +2757,11 @@ points_to_pixels(char_u *str, char_u **end, int vertical, long_i pprinter_dc) return pixels; } -/*ARGSUSED*/ static int CALLBACK font_enumproc( ENUMLOGFONT *elf, - NEWTEXTMETRIC *ntm, - int type, + NEWTEXTMETRIC *ntm UNUSED, + int type UNUSED, LPARAM lparam) { /* Return value: |