mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
main,os/env: Fix lint errors
This commit is contained in:
@@ -1835,10 +1835,10 @@ static void source_startup_scripts(mparm_T *parmp)
|
||||
char_u *user_vimrc = (char_u *)stdpaths_user_conf_subpath("init.vim");
|
||||
if (process_env("VIMINIT", true) != OK) {
|
||||
if (do_source(user_vimrc, true, DOSO_VIMRC) == FAIL
|
||||
&& process_env("EXINIT", FALSE) == FAIL
|
||||
&& do_source((char_u *)USR_EXRC_FILE, FALSE, DOSO_NONE) == FAIL) {
|
||||
&& process_env("EXINIT", false) == FAIL
|
||||
&& do_source((char_u *)USR_EXRC_FILE, false, DOSO_NONE) == FAIL) {
|
||||
#ifdef USR_EXRC_FILE2
|
||||
(void)do_source((char_u *)USR_EXRC_FILE2, FALSE, DOSO_NONE);
|
||||
(void)do_source((char_u *)USR_EXRC_FILE2, false, DOSO_NONE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
@@ -431,7 +431,7 @@ const void *vim_colon_env_iter(const char *const val,
|
||||
const void *const iter,
|
||||
const char **const dir,
|
||||
size_t *const len)
|
||||
FUNC_ATTR_NONNULL_ARG(1,3,4) FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
FUNC_ATTR_NONNULL_ARG(1, 3, 4) FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
const char *varval = (const char *) iter;
|
||||
if (varval == NULL) {
|
||||
@@ -464,7 +464,7 @@ const void *vim_colon_env_iter_rev(const char *const val,
|
||||
const void *const iter,
|
||||
const char **const dir,
|
||||
size_t *const len)
|
||||
FUNC_ATTR_NONNULL_ARG(1,3,4) FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
FUNC_ATTR_NONNULL_ARG(1, 3, 4) FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
const char *varend = (const char *) iter;
|
||||
if (varend == NULL) {
|
||||
|
Reference in New Issue
Block a user