summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-01 20:34:26 +0100
committerBram Moolenaar <Bram@vim.org>2020-03-01 20:34:26 +0100
commit815eb83b09914ecff32193913a373cb385868421 (patch)
tree9734d9d1e942f48a5715797ecbfb4f0827587e20
parentab55c6826f9080477fea6d5593f0b77931acfc1d (diff)
patch 8.2.0345: compiler warning when building without the float featurev8.2.0345
Problem: Compiler warning when building without the float feature. Solution: Add #ifdef. (John Marriott)
-rw-r--r--src/evalfunc.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 363ac69492..9e8e0fed0b 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -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)
{
diff --git a/src/version.c b/src/version.c
index 40c3c75c72..6205a56490 100644
--- a/src/version.c
+++ b/src/version.c
@@ -739,6 +739,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 345,
+/**/
344,
/**/
343,