Mercurial > vim
comparison src/dosinst.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 | d2ef7d649fcb |
children | 495d55210aac |
comparison
equal
deleted
inserted
replaced
29104:c58baa6d6dda | 29105:faf7fcd1c8d5 |
---|---|
437 * Callback used for EnumWindows(): | 437 * Callback used for EnumWindows(): |
438 * Count the window if the title looks like it is for the uninstaller. | 438 * Count the window if the title looks like it is for the uninstaller. |
439 */ | 439 */ |
440 //ARGSUSED | 440 //ARGSUSED |
441 static BOOL CALLBACK | 441 static BOOL CALLBACK |
442 window_cb(HWND hwnd, LPARAM lparam) | 442 window_cb(HWND hwnd, LPARAM lparam UNUSED) |
443 { | 443 { |
444 char title[256]; | 444 char title[256]; |
445 | 445 |
446 title[0] = 0; | 446 title[0] = 0; |
447 GetWindowText(hwnd, title, 256); | 447 GetWindowText(hwnd, title, 256); |
1168 | 1168 |
1169 /* | 1169 /* |
1170 * Install the vimrc file. | 1170 * Install the vimrc file. |
1171 */ | 1171 */ |
1172 static void | 1172 static void |
1173 install_vimrc(int idx) | 1173 install_vimrc(int idx UNUSED) |
1174 { | 1174 { |
1175 FILE *fd, *tfd; | 1175 FILE *fd, *tfd; |
1176 char *fname; | 1176 char *fname; |
1177 | 1177 |
1178 // If an old vimrc file exists, overwrite it. | 1178 // If an old vimrc file exists, overwrite it. |
1889 | 1889 |
1890 /* | 1890 /* |
1891 * Create shortcut(s) in the Start Menu\Programs\Vim folder. | 1891 * Create shortcut(s) in the Start Menu\Programs\Vim folder. |
1892 */ | 1892 */ |
1893 static void | 1893 static void |
1894 install_start_menu(int idx) | 1894 install_start_menu(int idx UNUSED) |
1895 { | 1895 { |
1896 need_uninstall_entry = 1; | 1896 need_uninstall_entry = 1; |
1897 printf("Creating start menu\n"); | 1897 printf("Creating start menu\n"); |
1898 if (has_vim) | 1898 if (has_vim) |
1899 { | 1899 { |