Skip to content

Commit 7f7bd29

Browse files
committed
patch 7.4.2290
Problem: Compiler warning in tiny build. (Tony Mechelynck) Solution: Add #ifdef around infinity_str().
1 parent 7683aaa commit 7f7bd29

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/message.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3990,6 +3990,7 @@ tv_float(typval_T *tvs, int *idxp)
39903990
# endif
39913991
#endif
39923992

3993+
#ifdef FEAT_FLOAT
39933994
/*
39943995
* Return the representation of infinity for printf() function:
39953996
* "-inf", "inf", "+inf", " inf", "-INF", "INF", "+INF" or " INF".
@@ -4011,6 +4012,7 @@ infinity_str(int positive,
40114012
idx += 4;
40124013
return table[idx];
40134014
}
4015+
#endif
40144016

40154017
/*
40164018
* This code was included to provide a portable vsnprintf() and snprintf().

src/version.c

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

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2290,
766768
/**/
767769
2289,
768770
/**/

0 commit comments

Comments
 (0)