Mercurial > vim
comparison src/evalfunc.c @ 19577:87379c82e9c9 v8.2.0345
patch 8.2.0345: compiler warning when building without the float feature
Commit: https://github.com/vim/vim/commit/815eb83b09914ecff32193913a373cb385868421
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 1 20:34:26 2020 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Mar 2020 20:45:07 +0100 |
parents | 06f29b6ea04a |
children | da791e5c0139 |
comparison
equal
deleted
inserted
replaced
19576:d4061ce6ef53 | 19577:87379c82e9c9 |
---|---|
278 static type_T * | 278 static type_T * |
279 ret_number(int argcount UNUSED, type_T **argtypes UNUSED) | 279 ret_number(int argcount UNUSED, type_T **argtypes UNUSED) |
280 { | 280 { |
281 return &t_number; | 281 return &t_number; |
282 } | 282 } |
283 #ifdef FEAT_FLOAT | |
283 static type_T * | 284 static type_T * |
284 ret_float(int argcount UNUSED, type_T **argtypes UNUSED) | 285 ret_float(int argcount UNUSED, type_T **argtypes UNUSED) |
285 { | 286 { |
286 return &t_float; | 287 return &t_float; |
287 } | 288 } |
289 #endif | |
288 static type_T * | 290 static type_T * |
289 ret_string(int argcount UNUSED, type_T **argtypes UNUSED) | 291 ret_string(int argcount UNUSED, type_T **argtypes UNUSED) |
290 { | 292 { |
291 return &t_string; | 293 return &t_string; |
292 } | 294 } |