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:
@@ -280,11 +280,13 @@ ret_number(int argcount UNUSED, type_T **argtypes UNUSED)
|
||||
{
|
||||
return &t_number;
|
||||
}
|
||||
#ifdef FEAT_FLOAT
|
||||
static type_T *
|
||||
ret_float(int argcount UNUSED, type_T **argtypes UNUSED)
|
||||
{
|
||||
return &t_float;
|
||||
}
|
||||
#endif
|
||||
static type_T *
|
||||
ret_string(int argcount UNUSED, type_T **argtypes UNUSED)
|
||||
{
|
||||
|
||||
@@ -738,6 +738,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
345,
|
||||
/**/
|
||||
344,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user