aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-03 00:44:36 +0100
committerGitHub <noreply@github.com>2019-01-03 00:44:36 +0100
commit0afb5fa70aa6b5bc1b007aca5309a5bafd63d868 (patch)
tree4c28823971a9411f1fccac4eacd7743bb745f51d /src/nvim/fileio.c
parent9f19e8d29dcece387d0aec1dc8c96995276ba61f (diff)
parent7ede14d191b1220ac872a24433825997d62ff7ec (diff)
downloadrneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.tar.gz
rneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.tar.bz2
rneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.zip
Merge #9425 'build: enable -Wshadow'
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index fe12a69801..c631057e81 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -5997,9 +5997,8 @@ void do_autocmd(char_u *arg_in, int forceit)
char_u *pat;
char_u *envpat = NULL;
char_u *cmd;
- event_T event;
- int need_free = FALSE;
- int nested = FALSE;
+ int need_free = false;
+ int nested = false;
int group;
if (*arg == '|') {
@@ -6082,7 +6081,7 @@ void do_autocmd(char_u *arg_in, int forceit)
last_event = (event_T)-1; // for listing the event name
last_group = AUGROUP_ERROR; // for listing the group name
if (*arg == '*' || *arg == NUL || *arg == '|') {
- for (event = (event_T)0; (int)event < (int)NUM_EVENTS;
+ for (event_T event = (event_T)0; (int)event < (int)NUM_EVENTS;
event = (event_T)((int)event + 1)) {
if (do_autocmd_event(event, pat, nested, cmd, forceit, group) == FAIL) {
break;