diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-10 20:05:42 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-10 20:05:42 -0500 |
commit | fc19f0c4c6773ff8b10c14492da2acf3601d8cbc (patch) | |
tree | 68ecc9a6718caf0cdb1bca365ce6373944af1357 /src/nvim/ex_eval.c | |
parent | 3080672650b1a6583684edfdafef7e07c0c7cf56 (diff) | |
parent | a6548e4fb34d50fbd49d0878618c3aecefabe79b (diff) | |
download | rneovim-fc19f0c4c6773ff8b10c14492da2acf3601d8cbc.tar.gz rneovim-fc19f0c4c6773ff8b10c14492da2acf3601d8cbc.tar.bz2 rneovim-fc19f0c4c6773ff8b10c14492da2acf3601d8cbc.zip |
Merge pull request #1431 from elmart/clang-analysis-fixes-2
Fix clang analysis warnings. (2)
Diffstat (limited to 'src/nvim/ex_eval.c')
-rw-r--r-- | src/nvim/ex_eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index 3e1672c2e7..fba0b93253 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -9,8 +9,8 @@ /* * ex_eval.c: functions for Ex command line for the +eval feature. */ +#include <assert.h> #include <stdbool.h> - #include <inttypes.h> #include "nvim/vim.h" @@ -670,6 +670,7 @@ static void report_pending(int action, int pending, void *value) char *s; int save_msg_silent; + assert(value || !(pending & CSTP_THROW)); switch (action) { case RP_MAKE: |