From: Bram Moolenaar Date: Sun, 1 Mar 2020 19:34:26 +0000 (+0100) Subject: patch 8.2.0345: compiler warning when building without the float feature X-Git-Tag: v8.2.0345 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=815eb83b09914ecff32193913a373cb385868421;p=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) --- 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 @@ -738,6 +738,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 345, /**/ 344, /**/