]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE v9.1.0979
authorChristian Brabandt <cb@256bit.org>
Mon, 30 Dec 2024 09:10:01 +0000 (10:10 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 30 Dec 2024 09:10:01 +0000 (10:10 +0100)
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>
src/os_unix.h
src/version.c

index 5ba64fd2f90050056f8782239d31b7dbf72f42a3..39c93043d266866d00c1eea703f05b03788862dd 100644 (file)
@@ -250,7 +250,7 @@ typedef struct dsc$descriptor   DESC;
 #endif
 
 #ifndef XDG_VIMRC_FILE
-# define XDG_VIMRC_FILE (mch_getenv("XDG_CONFIG_HOME") \
+# define XDG_VIMRC_FILE (mch_getenv((char_u *)"XDG_CONFIG_HOME") \
        ? "$XDG_CONFIG_HOME/vim/vimrc" \
        : "~/.config/vim/vimrc")
 #endif
index 00ba6f9b6631c1d00af2838c6af3225569eef7dc..e63645d64fbb9f0502f508969d771aefaf28ddc1 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    979,
 /**/
     978,
 /**/