Mercurial > vim
diff src/iscygpty.c @ 29105:faf7fcd1c8d5 v8.2.5073
patch 8.2.5073: clang on MS-Windows produces warnings
Commit: https://github.com/vim/vim/commit/35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 9 20:53:54 2022 +0100
patch 8.2.5073: clang on MS-Windows produces warnings
Problem: Clang on MS-Windows produces warnings.
Solution: Avoid the warnings. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/10546)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Jun 2022 22:00:07 +0200 |
parents | 82c732e8d23d |
children | 1ffdcd8a424e |
line wrap: on
line diff
--- a/src/iscygpty.c +++ b/src/iscygpty.c @@ -56,6 +56,11 @@ # endif #endif // USE_FILEEXTD +#ifdef __MINGW32__ +# define UNUSED __attribute__((unused)) +#else +# define UNUSED +#endif #include "iscygpty.h" @@ -70,10 +75,10 @@ static pfnGetFileInformationByHandleEx p # ifndef USE_FILEEXTD static BOOL WINAPI stub_GetFileInformationByHandleEx( - HANDLE hFile, - FILE_INFO_BY_HANDLE_CLASS FileInformationClass, - LPVOID lpFileInformation, - DWORD dwBufferSize) + HANDLE hFile UNUSED, + FILE_INFO_BY_HANDLE_CLASS FileInformationClass UNUSED, + LPVOID lpFileInformation UNUSED, + DWORD dwBufferSize UNUSED) { return FALSE; }