Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29104:c58baa6d6dda | 29105:faf7fcd1c8d5 |
---|---|
54 # error "Win32 FileID API Library is required for VC2005 or earlier." | 54 # error "Win32 FileID API Library is required for VC2005 or earlier." |
55 # endif | 55 # endif |
56 # endif | 56 # endif |
57 #endif // USE_FILEEXTD | 57 #endif // USE_FILEEXTD |
58 | 58 |
59 #ifdef __MINGW32__ | |
60 # define UNUSED __attribute__((unused)) | |
61 #else | |
62 # define UNUSED | |
63 #endif | |
59 | 64 |
60 #include "iscygpty.h" | 65 #include "iscygpty.h" |
61 | 66 |
62 //#define USE_DYNFILEID | 67 //#define USE_DYNFILEID |
63 #ifdef USE_DYNFILEID | 68 #ifdef USE_DYNFILEID |
68 DWORD dwBufferSize); | 73 DWORD dwBufferSize); |
69 static pfnGetFileInformationByHandleEx pGetFileInformationByHandleEx = NULL; | 74 static pfnGetFileInformationByHandleEx pGetFileInformationByHandleEx = NULL; |
70 | 75 |
71 # ifndef USE_FILEEXTD | 76 # ifndef USE_FILEEXTD |
72 static BOOL WINAPI stub_GetFileInformationByHandleEx( | 77 static BOOL WINAPI stub_GetFileInformationByHandleEx( |
73 HANDLE hFile, | 78 HANDLE hFile UNUSED, |
74 FILE_INFO_BY_HANDLE_CLASS FileInformationClass, | 79 FILE_INFO_BY_HANDLE_CLASS FileInformationClass UNUSED, |
75 LPVOID lpFileInformation, | 80 LPVOID lpFileInformation UNUSED, |
76 DWORD dwBufferSize) | 81 DWORD dwBufferSize UNUSED) |
77 { | 82 { |
78 return FALSE; | 83 return FALSE; |
79 } | 84 } |
80 # endif | 85 # endif |
81 | 86 |