aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-05-13 07:51:01 -0400
committerGitHub <noreply@github.com>2017-05-13 07:51:01 -0400
commitac47f8a50691e6ce99c54712e5c984db8b1f079e (patch)
treef6863f960fe46983b5efb2a84db0bed6f8c80b75 /src/nvim/eval.c
parentae3d5e5ecc32f4ca6a29976880f225a716bad44b (diff)
parentf3a508b4a3c13cc755b355976c6e0f2fae7e1645 (diff)
downloadrneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.gz
rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.tar.bz2
rneovim-ac47f8a50691e6ce99c54712e5c984db8b1f079e.zip
Merge pull request #6514 from jamessan/gcc-7-fixes
Fix GCC 7 issues
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 56a6632fad..31e5ae8806 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -9596,13 +9596,15 @@ static void f_getcwd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (from) {
break;
}
- case kCdScopeTab: // FALLTHROUGH
+ // fallthrough
+ case kCdScopeTab:
assert(tp);
from = tp->tp_localdir;
if (from) {
break;
}
- case kCdScopeGlobal: // FALLTHROUGH
+ // fallthrough
+ case kCdScopeGlobal:
if (globaldir) { // `globaldir` is not always set.
from = globaldir;
} else if (os_dirname(cwd, MAXPATHL) == FAIL) { // Get the OS CWD.