mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.0.1272: warnings for unused variables in tiny build
Problem: Warnings for unused variables in tiny build. Solution: Add #ifdef. (Dominique Pelle, closes #2288)
This commit is contained in:
@@ -4757,10 +4757,11 @@ check_termcode(
|
|||||||
if (i - j >= 21 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
|
if (i - j >= 21 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
|
||||||
&& tp[j + 11] == '/' && tp[j + 16] == '/')
|
&& tp[j + 11] == '/' && tp[j + 16] == '/')
|
||||||
{
|
{
|
||||||
|
#ifdef FEAT_TERMINAL
|
||||||
int rval = hexhex2nr(tp + j + 7);
|
int rval = hexhex2nr(tp + j + 7);
|
||||||
int gval = hexhex2nr(tp + j + 12);
|
int gval = hexhex2nr(tp + j + 12);
|
||||||
int bval = hexhex2nr(tp + j + 17);
|
int bval = hexhex2nr(tp + j + 17);
|
||||||
|
#endif
|
||||||
if (is_bg)
|
if (is_bg)
|
||||||
{
|
{
|
||||||
char *newval = (3 * '6' < tp[j+7] + tp[j+12]
|
char *newval = (3 * '6' < tp[j+7] + tp[j+12]
|
||||||
|
@@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1272,
|
||||||
/**/
|
/**/
|
||||||
1271,
|
1271,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user