comparison src/dosinst.h @ 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 9800e126eaa2
children 495d55210aac
comparison
equal deleted inserted replaced
29104:c58baa6d6dda 29105:faf7fcd1c8d5
70 # define KEY_WOW64_64KEY 0x0100 70 # define KEY_WOW64_64KEY 0x0100
71 # endif 71 # endif
72 # ifndef KEY_WOW64_32KEY 72 # ifndef KEY_WOW64_32KEY
73 # define KEY_WOW64_32KEY 0x0200 73 # define KEY_WOW64_32KEY 0x0200
74 # endif 74 # endif
75
76 #ifdef __MINGW32__
77 # define UNUSED __attribute__((unused))
78 #else
79 # define UNUSED
80 #endif
75 81
76 #define VIM_STARTMENU "Programs\\Vim " VIM_VERSION_SHORT 82 #define VIM_STARTMENU "Programs\\Vim " VIM_VERSION_SHORT
77 83
78 int interactive; // non-zero when running interactively 84 int interactive; // non-zero when running interactively
79 85
448 454
449 /* 455 /*
450 * Expand the executable name into a full path name. 456 * Expand the executable name into a full path name.
451 */ 457 */
452 static char * 458 static char *
453 my_fullpath(char *buf, char *fname, int len) 459 my_fullpath(char *buf, char *fname UNUSED, int len)
454 { 460 {
455 // Only GetModuleFileName() will get the long file name path. 461 // Only GetModuleFileName() will get the long file name path.
456 // GetFullPathName() may still use the short (FAT) name. 462 // GetFullPathName() may still use the short (FAT) name.
457 DWORD len_read = GetModuleFileName(NULL, buf, (size_t)len); 463 DWORD len_read = GetModuleFileName(NULL, buf, (size_t)len);
458 464