summaryrefslogtreecommitdiffstats
path: root/src/iscygpty.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-09 20:53:54 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-09 20:53:54 +0100
commit35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49 (patch)
tree257dbf4040c59cf01a5072d35f0c9e5264bba09d /src/iscygpty.c
parent63f32603789d1a27c559fc440325955fd0b8b500 (diff)
patch 8.2.5073: clang on MS-Windows produces warningsv8.2.5073
Problem: Clang on MS-Windows produces warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #10546)
Diffstat (limited to 'src/iscygpty.c')
-rw-r--r--src/iscygpty.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/iscygpty.c b/src/iscygpty.c
index 73d5143abc..9dded85485 100644
--- 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 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;
}