1
0
forked from aniani/vim

patch 8.2.0345: compiler warning when building without the float feature

Problem:    Compiler warning when building without the float feature.
Solution:   Add #ifdef. (John Marriott)
This commit is contained in:
Bram Moolenaar
2020-03-01 20:34:26 +01:00
parent ab55c6826f
commit 815eb83b09
2 changed files with 4 additions and 0 deletions

View File

@@ -280,11 +280,13 @@ ret_number(int argcount UNUSED, type_T **argtypes UNUSED)
{ {
return &t_number; return &t_number;
} }
#ifdef FEAT_FLOAT
static type_T * static type_T *
ret_float(int argcount UNUSED, type_T **argtypes UNUSED) ret_float(int argcount UNUSED, type_T **argtypes UNUSED)
{ {
return &t_float; return &t_float;
} }
#endif
static type_T * static type_T *
ret_string(int argcount UNUSED, type_T **argtypes UNUSED) ret_string(int argcount UNUSED, type_T **argtypes UNUSED)
{ {

View File

@@ -738,6 +738,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 */
/**/
345,
/**/ /**/
344, 344,
/**/ /**/