Skip to content

Commit 80ed8b8

Browse files
committed
patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE
Problem: VMS: type warning with $XDG_VIMRC_FILE (Zoltan Arpadffy) Solution: add explicit (char_u *) type cast to mch_getenv() call fixes: #16335 Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 2e1f757 commit 80ed8b8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/os_unix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ typedef struct dsc$descriptor DESC;
250250
#endif
251251

252252
#ifndef XDG_VIMRC_FILE
253-
# define XDG_VIMRC_FILE (mch_getenv("XDG_CONFIG_HOME") \
253+
# define XDG_VIMRC_FILE (mch_getenv((char_u *)"XDG_CONFIG_HOME") \
254254
? "$XDG_CONFIG_HOME/vim/vimrc" \
255255
: "~/.config/vim/vimrc")
256256
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
979,
707709
/**/
708710
978,
709711
/**/

0 commit comments

Comments
 (0)