0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 9.1.0623: Mingw: errors when trying to delete non-existing files

Problem:  Mingw: warnings when trying to delete non-existing files
Solution: Use "rm -f" instead of "rm" to suppress errors for
          non-existing files (Ken Takata)

closes: #15350

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Ken Takata 2024-07-26 19:02:11 +02:00 committed by Christian Brabandt
parent 032accd98b
commit 325420ebe4
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
4 changed files with 7 additions and 5 deletions

View File

@ -29,7 +29,7 @@ LDFLAGS += -static-libgcc -static-libstdc++
endif
ifeq ($(CROSS),yes)
DEL = rm
DEL = rm -f
ifeq ($(MINGWOLD),yes)
CXXFLAGS := -O2 -fvtable-thunks
else
@ -38,7 +38,7 @@ endif
else
CXXFLAGS := -O2
ifneq (sh.exe, $(SHELL))
DEL = rm
DEL = rm -f
else
DEL = del
endif

View File

@ -184,7 +184,7 @@ ifeq ($(CROSS),yes)
ifndef CROSS_COMPILE
CROSS_COMPILE = i586-pc-mingw32msvc-
endif
DEL = rm
DEL = rm -f
MKDIR = mkdir -p
DIRSLASH = /
else
@ -212,7 +212,7 @@ CROSS_COMPILE =
# In this case, unix-like commands can be used.
#
ifneq (sh.exe, $(SHELL))
DEL = rm
DEL = rm -f
MKDIR = mkdir -p
DIRSLASH = /
else

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
623,
/**/
622,
/**/

View File

@ -16,7 +16,7 @@ CC = gcc
CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
ifneq (sh.exe, $(SHELL))
DEL = rm
DEL = rm -f
else
DEL = del
endif