Mercurial > vim
comparison src/dosinst.c @ 29096:d2ef7d649fcb v8.2.5069
patch 8.2.5069: various warnings from clang on MS-Windows
Commit: https://github.com/vim/vim/commit/ebb01bdb273216607f60faddf791a1b378cccfa8
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Jun 8 15:14:09 2022 +0100
patch 8.2.5069: various warnings from clang on MS-Windows
Problem: Various warnings from clang on MS-Windows.
Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan,
closes #10538)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jun 2022 16:15:03 +0200 |
parents | e3014ada45a5 |
children | faf7fcd1c8d5 |
comparison
equal
deleted
inserted
replaced
29095:f12e06b1dd95 | 29096:d2ef7d649fcb |
---|---|
209 sprintf(buf, "%s\\filetype.vim", installdir); | 209 sprintf(buf, "%s\\filetype.vim", installdir); |
210 if (stat(buf, &st) < 0) | 210 if (stat(buf, &st) < 0) |
211 { | 211 { |
212 printf("ERROR: Cannot find filetype.vim in \"%s\"\n", installdir); | 212 printf("ERROR: Cannot find filetype.vim in \"%s\"\n", installdir); |
213 printf("It looks like you did not unpack the runtime archive.\n"); | 213 printf("It looks like you did not unpack the runtime archive.\n"); |
214 printf("You must unpack the runtime archive \"vim%srt.zip\" before installing.\n", | 214 printf("You must unpack the runtime archive \"%srt.zip\" before installing.\n", |
215 VIM_VERSION_NODOT + 3); | 215 VIM_VERSION_NODOT); |
216 myexit(1); | 216 myexit(1); |
217 } | 217 } |
218 | 218 |
219 // Check if vim.exe or gvim.exe is in the current directory. | 219 // Check if vim.exe or gvim.exe is in the current directory. |
220 if ((fd = fopen("gvim.exe", "r")) != NULL) | 220 if ((fd = fopen("gvim.exe", "r")) != NULL) |