]> granicus.if.org Git - vim/commitdiff
patch 7.4.2290 v7.4.2290
authorBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 19:21:31 +0000 (21:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 Aug 2016 19:21:31 +0000 (21:21 +0200)
Problem:    Compiler warning in tiny build. (Tony Mechelynck)
Solution:   Add #ifdef around infinity_str().

src/message.c
src/version.c

index 12cb2c41a69fa9ae4bec6cb2eb19a85092416a34..92e735349d9e116e66e6d872e92eee09aeed5617 100644 (file)
@@ -3990,6 +3990,7 @@ tv_float(typval_T *tvs, int *idxp)
 # endif
 #endif
 
+#ifdef FEAT_FLOAT
 /*
  * Return the representation of infinity for printf() function:
  * "-inf", "inf", "+inf", " inf", "-INF", "INF", "+INF" or " INF".
@@ -4011,6 +4012,7 @@ infinity_str(int positive,
        idx += 4;
     return table[idx];
 }
+#endif
 
 /*
  * This code was included to provide a portable vsnprintf() and snprintf().
index b67c3f60c2e3c7c8fdbb96531a451eecb4063497..3cae92ddeae003abadd8c3abcb68178936f30d2c 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2290,
 /**/
     2289,
 /**/