aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-01-31 10:43:03 -0500
committerJames McCoy <jamessan@jamessan.com>2021-01-31 11:28:52 -0500
commit27a7a4d38405a30611339fc663e426904bda1099 (patch)
tree23935162b10ba9fa607df9a35ea3b3da7ea9349e /src/nvim/quickfix.c
parent035ee868ae2d9cbbf2a290ca3412946fade20833 (diff)
downloadrneovim-27a7a4d38405a30611339fc663e426904bda1099.tar.gz
rneovim-27a7a4d38405a30611339fc663e426904bda1099.tar.bz2
rneovim-27a7a4d38405a30611339fc663e426904bda1099.zip
Use abort() instead of assert(false) for things that should never happen
assert() is compiled out for release builds, but we don't want to continue running in these impossible situations. This also resolves the "implicit fallthrough" warnings for the asserts in switch cases.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index a625c09f78..d24d170a39 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -5648,7 +5648,7 @@ static int get_qfline_items(qfline_T *qfp, list_T *list)
== FAIL)) {
// tv_dict_add* fail only if key already exist, but this is a newly
// allocated dictionary which is thus guaranteed to have no existing keys.
- assert(false);
+ abort();
}
return OK;