Mercurial > vim
comparison src/ex_docmd.c @ 20063:cc146cde0b4d v8.2.0587
patch 8.2.0587: compiler warning for unused variable
Commit: https://github.com/vim/vim/commit/21cfe500f322a0bea3367c677943ea6c57c282b9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 16 23:01:50 2020 +0200
patch 8.2.0587: compiler warning for unused variable
Problem: Compiler warning for unused variable.
Solution: Add UNUSED.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Apr 2020 23:15:03 +0200 |
parents | de756b3f4dee |
children | 516b10943fdb |
comparison
equal
deleted
inserted
replaced
20062:a198083f2ccf | 20063:cc146cde0b4d |
---|---|
4781 /* | 4781 /* |
4782 * Like ends_excmd() but checks that a # in Vim9 script either has "cmd" equal | 4782 * Like ends_excmd() but checks that a # in Vim9 script either has "cmd" equal |
4783 * to "cmd_start" or has a white space character before it. | 4783 * to "cmd_start" or has a white space character before it. |
4784 */ | 4784 */ |
4785 int | 4785 int |
4786 ends_excmd2(char_u *cmd_start, char_u *cmd) | 4786 ends_excmd2(char_u *cmd_start UNUSED, char_u *cmd) |
4787 { | 4787 { |
4788 int c = *cmd; | 4788 int c = *cmd; |
4789 | 4789 |
4790 #ifdef FEAT_EVAL | 4790 #ifdef FEAT_EVAL |
4791 if (c == '#' && (cmd == cmd_start || VIM_ISWHITE(cmd[-1]))) | 4791 if (c == '#' && (cmd == cmd_start || VIM_ISWHITE(cmd[-1]))) |