aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval/typval_encode.c.h
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-21 22:12:50 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-10-21 23:24:50 +0200
commit2afebc4e5f551c7a4f7655d6d693a0ca745a6a31 (patch)
tree5e2532ae77f125274778a54cb06b8feee47e5c6f /src/nvim/eval/typval_encode.c.h
parenta8422818a74b56ab42a92cbf3c044165657a4060 (diff)
downloadrneovim-2afebc4e5f551c7a4f7655d6d693a0ca745a6a31.tar.gz
rneovim-2afebc4e5f551c7a4f7655d6d693a0ca745a6a31.tar.bz2
rneovim-2afebc4e5f551c7a4f7655d6d693a0ca745a6a31.zip
fix warning: "Dead assignment"
`tv` is passed to the TYPVAL_ENCODE_CONV_FUNC_BEFORE_* macros, which don't appear to actually use that parameter. Found by clang scan-build 5.0
Diffstat (limited to 'src/nvim/eval/typval_encode.c.h')
-rw-r--r--src/nvim/eval/typval_encode.c.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval_encode.c.h b/src/nvim/eval/typval_encode.c.h
index 4556ce8193..623bdfc93b 100644
--- a/src/nvim/eval/typval_encode.c.h
+++ b/src/nvim/eval/typval_encode.c.h
@@ -741,6 +741,7 @@ typval_encode_stop_converting_one_item:
case kMPConvPartial: {
partial_T *const pt = cur_mpsv->data.p.pt;
tv = cur_mpsv->tv;
+ (void)tv;
switch (cur_mpsv->data.p.stage) {
case kMPConvPartialArgs: {
TYPVAL_ENCODE_CONV_FUNC_BEFORE_ARGS(tv,