diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-01 20:34:26 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-01 20:34:26 +0100 |
commit | 815eb83b09914ecff32193913a373cb385868421 (patch) | |
tree | 9734d9d1e942f48a5715797ecbfb4f0827587e20 | |
parent | ab55c6826f9080477fea6d5593f0b77931acfc1d (diff) | |
download | vim-git-815eb83b09914ecff32193913a373cb385868421.tar.gz |
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.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 363ac6949..9e8e0fed0 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 40c3c75c7..6205a5649 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, |