Skip to content

Commit 53ec795

Browse files
committed
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)
1 parent fb094e1 commit 53ec795

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/term.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4757,10 +4757,11 @@ check_termcode(
47574757
if (i - j >= 21 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
47584758
&& tp[j + 11] == '/' && tp[j + 16] == '/')
47594759
{
4760+
#ifdef FEAT_TERMINAL
47604761
int rval = hexhex2nr(tp + j + 7);
47614762
int gval = hexhex2nr(tp + j + 12);
47624763
int bval = hexhex2nr(tp + j + 17);
4763-
4764+
#endif
47644765
if (is_bg)
47654766
{
47664767
char *newval = (3 * '6' < tp[j+7] + tp[j+12]

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1272,
764766
/**/
765767
1271,
766768
/**/

0 commit comments

Comments
 (0)