Mercurial > vim
comparison src/evalfunc.c @ 16409:39f0af6c71ed v8.1.1209
patch 8.1.1209: clever compiler warns for buffer being too small
commit https://github.com/vim/vim/commit/5431589d25e73892fcf7ad1eaca53f742c1c9303
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 26 22:33:49 2019 +0200
patch 8.1.1209: clever compiler warns for buffer being too small
Problem: Clever compiler warns for buffer being too small.
Solution: Make the buffer bigger (even though it's not really needed).
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 26 Apr 2019 22:45:04 +0200 |
parents | 235a2b941498 |
children | 5b5c5daf57de |
comparison
equal
deleted
inserted
replaced
16408:9bb0ad3d3388 | 16409:39f0af6c71ed |
---|---|
5458 { | 5458 { |
5459 /* match added with matchaddpos() */ | 5459 /* match added with matchaddpos() */ |
5460 for (i = 0; i < MAXPOSMATCH; ++i) | 5460 for (i = 0; i < MAXPOSMATCH; ++i) |
5461 { | 5461 { |
5462 llpos_T *llpos; | 5462 llpos_T *llpos; |
5463 char buf[6]; | 5463 char buf[30]; // use 30 to avoid compiler warning |
5464 list_T *l; | 5464 list_T *l; |
5465 | 5465 |
5466 llpos = &cur->pos.pos[i]; | 5466 llpos = &cur->pos.pos[i]; |
5467 if (llpos->lnum == 0) | 5467 if (llpos->lnum == 0) |
5468 break; | 5468 break; |
11500 clear_matches(win); | 11500 clear_matches(win); |
11501 li = l->lv_first; | 11501 li = l->lv_first; |
11502 while (li != NULL) | 11502 while (li != NULL) |
11503 { | 11503 { |
11504 int i = 0; | 11504 int i = 0; |
11505 char_u buf[5]; | 11505 char buf[30]; // use 30 to avoid compiler warning |
11506 dictitem_T *di; | 11506 dictitem_T *di; |
11507 char_u *group; | 11507 char_u *group; |
11508 int priority; | 11508 int priority; |
11509 int id; | 11509 int id; |
11510 char_u *conceal; | 11510 char_u *conceal; |