0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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:
Bram Moolenaar
2022-06-09 20:53:54 +01:00
parent 63f3260378
commit 35d7a2fb13
12 changed files with 137 additions and 105 deletions

View File

@@ -73,6 +73,12 @@ char *searchpath(char *name);
# define KEY_WOW64_32KEY 0x0200
# endif
#ifdef __MINGW32__
# define UNUSED __attribute__((unused))
#else
# define UNUSED
#endif
#define VIM_STARTMENU "Programs\\Vim " VIM_VERSION_SHORT
int interactive; // non-zero when running interactively
@@ -450,7 +456,7 @@ mch_chdir(char *path)
* Expand the executable name into a full path name.
*/
static char *
my_fullpath(char *buf, char *fname, int len)
my_fullpath(char *buf, char *fname UNUSED, int len)
{
// Only GetModuleFileName() will get the long file name path.
// GetFullPathName() may still use the short (FAT) name.