Mercurial > vim
comparison src/vim9compile.c @ 19193:9f98957582d6 v8.2.0155
patch 8.2.0155: warnings from MinGW compiler; tests fail without +float
Commit: https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 26 21:42:03 2020 +0100
patch 8.2.0155: warnings from MinGW compiler; tests fail without +float
Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when
building without +float feature.
Solution: Init variables. Fix Json parsing. Skip a few tests that require
the +float feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 26 Jan 2020 21:45:03 +0100 |
parents | 133ef7ba4e4e |
children | b18437efabac |
comparison
equal
deleted
inserted
replaced
19192:68049eeb2e00 | 19193:9f98957582d6 |
---|---|
1215 } | 1215 } |
1216 break; | 1216 break; |
1217 case 'f': | 1217 case 'f': |
1218 if (len == 5 && STRNCMP(*arg, "float", len) == 0) | 1218 if (len == 5 && STRNCMP(*arg, "float", len) == 0) |
1219 { | 1219 { |
1220 #ifdef FEAT_FLOAT | |
1220 *arg += len; | 1221 *arg += len; |
1221 return &t_float; | 1222 return &t_float; |
1223 #else | |
1224 emsg(_("E1055: This Vim is not compiled with float support")); | |
1225 return &t_any; | |
1226 #endif | |
1222 } | 1227 } |
1223 if (len == 4 && STRNCMP(*arg, "func", len) == 0) | 1228 if (len == 4 && STRNCMP(*arg, "func", len) == 0) |
1224 { | 1229 { |
1225 *arg += len; | 1230 *arg += len; |
1226 // TODO: arguments and return type | 1231 // TODO: arguments and return type |