forked from aniani/vim
patch 8.2.5073: clang on MS-Windows produces warnings
Problem: Clang on MS-Windows produces warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10546)
This commit is contained in:
@@ -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 pGetFileInformationByHandleEx = NULL;
|
||||
|
||||
# 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user