Mercurial > vim
comparison src/userfunc.c @ 30077:d45ee1f829ba v9.0.0376
patch 9.0.0376: clang warns for dead assignments
Commit: https://github.com/vim/vim/commit/6b085b9d7367e077ca69f4f82ba0f92cc6b6e443
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Sep 4 12:47:21 2022 +0100
patch 9.0.0376: clang warns for dead assignments
Problem: Clang warns for dead assignments.
Solution: Adjust the code. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/11048)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Sep 2022 14:00:03 +0200 |
parents | 6cf788ab844c |
children | 105f946422d1 |
comparison
equal
deleted
inserted
replaced
30076:acda512ad10a | 30077:d45ee1f829ba |
---|---|
310 typval_T rettv; | 310 typval_T rettv; |
311 | 311 |
312 // find the end of the expression (doesn't evaluate it) | 312 // find the end of the expression (doesn't evaluate it) |
313 any_default = TRUE; | 313 any_default = TRUE; |
314 p = skipwhite(p) + 1; | 314 p = skipwhite(p) + 1; |
315 whitep = p; | |
316 p = skipwhite(p); | |
317 expr = p; | 315 expr = p; |
318 if (eval1(&p, &rettv, NULL) != FAIL) | 316 if (eval1(&p, &rettv, NULL) != FAIL) |
319 { | 317 { |
320 if (!skip) | 318 if (!skip) |
321 { | 319 { |