patch 8.0.0281: some files are still using ARGSUSED instead of UNUSED
Problem: MS-Windows files are still using ARGSUSED while most other files
have UNUSED.
Solution: Change ARGSUSED to UNUSED or delete it.
diff --git a/src/os_mswin.c b/src/os_mswin.c
index 408438e..14fe8c6 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -306,10 +306,8 @@
* 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 @@
* 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 @@
}
#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 @@
/*
* 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 @@
/*
* 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 @@
# 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 @@
return FALSE;
}
-/*ARGSUSED*/
static BOOL CALLBACK
-AbortProc(HDC hdcPrn, int iCode)
+AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED)
{
MSG msg;
@@ -1683,9 +1677,8 @@
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 @@
return pixels;
}
-/*ARGSUSED*/
static int CALLBACK
font_enumproc(
ENUMLOGFONT *elf,
- NEWTEXTMETRIC *ntm,
- int type,
+ NEWTEXTMETRIC *ntm UNUSED,
+ int type UNUSED,
LPARAM lparam)
{
/* Return value: