diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-09 20:53:54 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-09 20:53:54 +0100 |
commit | 35d7a2fb13fc833aa1b654ca6fd6e429e72e6b49 (patch) | |
tree | 257dbf4040c59cf01a5072d35f0c9e5264bba09d /src/dosinst.h | |
parent | 63f32603789d1a27c559fc440325955fd0b8b500 (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/dosinst.h')
-rw-r--r-- | src/dosinst.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dosinst.h b/src/dosinst.h index c262c4224b..774a56d3dc 100644 --- a/src/dosinst.h +++ b/src/dosinst.h @@ -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. |