diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-16 15:06:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-16 15:06:59 +0100 |
commit | 6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c (patch) | |
tree | d2277cebb1354524326ac1333b3bd47f7453c456 /src/fileio.c | |
parent | f8df7addc5f741c16fa2a458f8777ac1fdf2e01e (diff) | |
download | vim-git-6aa2cd4be287f35f95f35c2cec6d5a24f53c4d3c.tar.gz |
patch 7.4.1334v7.4.1334
Problem: Many compiler warnings with MingW.
Solution: Add type casts. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index f0ef67532..c5a3f2a8d 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -7480,11 +7480,11 @@ vim_tempname( } strcpy(buf4, "VIM"); buf4[2] = extra_char; /* make it "VIa", "VIb", etc. */ - if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0) + if (GetTempFileName(szTempFile, buf4, 0, (LPSTR)itmp) == 0) return NULL; if (!keep) /* GetTempFileName() will create the file, we don't want that */ - (void)DeleteFile(itmp); + (void)DeleteFile((LPSTR)itmp); /* Backslashes in a temp file name cause problems when filtering with * "sh". NOTE: This also checks 'shellcmdflag' to help those people who |