Mercurial > vim
comparison src/scriptfile.c @ 18997:6b2d93436388 v8.2.0059
patch 8.2.0059: compiler warnings for unused variables in small build
Commit: https://github.com/vim/vim/commit/85b0957616e9d9d0edef44baa9fa6c6a2037782d
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 30 10:57:00 2019 +0100
patch 8.2.0059: compiler warnings for unused variables in small build
Problem: Compiler warnings for unused variables in small build. (Tony
Mechelynck)
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 Dec 2019 11:00:04 +0100 |
parents | dcbc559510f6 |
children | 5a62b4a0c961 |
comparison
equal
deleted
inserted
replaced
18996:bcceb28040ef | 18997:6b2d93436388 |
---|---|
93 * Get the current value for <sfile> in allocated memory. | 93 * Get the current value for <sfile> in allocated memory. |
94 */ | 94 */ |
95 char_u * | 95 char_u * |
96 estack_sfile(void) | 96 estack_sfile(void) |
97 { | 97 { |
98 estack_T *entry; | |
99 #ifdef FEAT_EVAL | |
98 int len; | 100 int len; |
99 int idx; | 101 int idx; |
100 estack_T *entry; | |
101 char *res; | 102 char *res; |
102 int done; | 103 int done; |
104 #endif | |
103 | 105 |
104 entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1; | 106 entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1; |
105 if (entry->es_name == NULL) | 107 if (entry->es_name == NULL) |
106 return NULL; | 108 return NULL; |
107 #ifdef FEAT_EVAL | 109 #ifdef FEAT_EVAL |