]> granicus.if.org Git - vim/commitdiff
patch 8.2.0345: compiler warning when building without the float feature v8.2.0345
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 19:34:26 +0000 (20:34 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 19:34:26 +0000 (20:34 +0100)
Problem:    Compiler warning when building without the float feature.
Solution:   Add #ifdef. (John Marriott)

src/evalfunc.c
src/version.c

index 363ac69492033014d18a9ec87f968293cf39eee0..9e8e0fed0b322f117896037f65649135a8fc13d1 100644 (file)
@@ -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)
 {
index 40c3c75c72c870d51ca5b45d4c13ef141f08773b..6205a564900af5eb0dd821f9fec4b2f43420aaa6 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    345,
 /**/
     344,
 /**/