From 1a81ec6d8841e96ce01f25fd030f76851b00d895 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Sun, 19 Feb 2017 23:18:00 +0100 Subject: strings.c: remove unused assignment As reported by clang-scan, `length_modifier` is never read in any code path following this branch. It is safe to remove. --- src/nvim/strings.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/nvim/strings.c b/src/nvim/strings.c index f7218cc267..5b6fbf75a9 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -980,7 +980,6 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap, const void *ptr_arg = NULL; if (fmt_spec == 'p') { - length_modifier = '\0'; ptr_arg = tvs ? tv_ptr(tvs, &arg_idx) : va_arg(ap, void *); if (ptr_arg) { arg_sign = 1; -- cgit