patch 9.1.0979: VMS: type warning with $XDG_VIMRC_FILE Commit: https://github.com/vim/vim/commit/80ed8b87614138a79bdd50c4b4199c0084601e04 Author: Christian Brabandt <c...@256bit.org> Date: Mon Dec 30 10:10:01 2024 +0100
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 <c...@256bit.org> diff --git a/src/os_unix.h b/src/os_unix.h index 5ba64fd2f..39c93043d 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -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 diff --git a/src/version.c b/src/version.c index 00ba6f9b6..e63645d64 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 979, /**/ 978, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tSBre-00DQwb-37%40256bit.org.