aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-09-16 23:13:35 -0400
committerJames McCoy <jamessan@jamessan.com>2017-09-16 23:23:01 -0400
commitb9cba41106e380556ddf731d8fbfcc9c84f8e225 (patch)
tree154d3974b034a2732af8e2b65b4831e9bcc6b43d /src/nvim/api/vim.c
parent9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a (diff)
downloadrneovim-b9cba41106e380556ddf731d8fbfcc9c84f8e225.tar.gz
rneovim-b9cba41106e380556ddf731d8fbfcc9c84f8e225.tar.bz2
rneovim-b9cba41106e380556ddf731d8fbfcc9c84f8e225.zip
tui: Use unibi_var_from_num when available
As of unibilium 1.2.1, directly manipulating unibi_var_t is deprecated. ../src/nvim/tui/tui.c: In function 'update_attrs': ../src/nvim/tui/tui.c:321:7: warning: 'i' is deprecated: use unibi_var_from_num or unibi_num_from_var instead [-Wdeprecated-declarations] data->params[0].i = (fg >> 16) & 0xff; // red ^~~~ In file included from ../src/nvim/tui/tui.c:12:0: /usr/include/unibilium.h:632:9: note: declared here int i UNIBI_DEPRECATED("use unibi_var_from_num or unibi_num_from_var instead"); ^ All use should go through unibi_{num,str}_from_var and unibi_var_from_{num,str}. Wrap access of unibi_var_t behind a new UNIBI_SET_NUM_VAR macro which uses the new functions when they're available.
Diffstat (limited to 'src/nvim/api/vim.c')
0 files changed, 0 insertions, 0 deletions