Mercurial > vim
comparison src/drawline.c @ 30375:e40d150b66cb v9.0.0523
patch 9.0.0523: more compiler warnings for arguments in small version
Commit: https://github.com/vim/vim/commit/2d2e25b3e3c932e76f53e9cc49b60e92a7dc8715
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 20 21:09:42 2022 +0100
patch 9.0.0523: more compiler warnings for arguments in small version
Problem: more compiler warnings for arguments in small version
Solution: Adjust #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 20 Sep 2022 22:15:03 +0200 |
parents | ba7db97776b2 |
children | 9126e872893d |
comparison
equal
deleted
inserted
replaced
30374:a53d7e39fd2d | 30375:e40d150b66cb |
---|---|
389 if (num_attr) | 389 if (num_attr) |
390 wlv->char_attr = num_attr; | 390 wlv->char_attr = num_attr; |
391 #endif | 391 #endif |
392 } | 392 } |
393 } | 393 } |
394 | |
394 #if defined(FEAT_PROP_POPUP) || defined(PROTO) | 395 #if defined(FEAT_PROP_POPUP) || defined(PROTO) |
395 /* | 396 /* |
396 * Return the cell size of virtual text after truncation. | 397 * Return the cell size of virtual text after truncation. |
397 */ | 398 */ |
398 static int | 399 static int |
1528 | 1529 |
1529 if (wlv.draw_state == WL_NR - 1 && wlv.n_extra == 0) | 1530 if (wlv.draw_state == WL_NR - 1 && wlv.n_extra == 0) |
1530 { | 1531 { |
1531 // Show the line number, if desired. | 1532 // Show the line number, if desired. |
1532 wlv.draw_state = WL_NR; | 1533 wlv.draw_state = WL_NR; |
1533 handle_lnum_col(wp, &wlv, sign_present, num_attr); | 1534 handle_lnum_col(wp, &wlv, |
1535 #ifdef FEAT_SIGNS | |
1536 sign_present, num_attr | |
1537 #else | |
1538 0, 0 | |
1539 #endif | |
1540 ); | |
1534 } | 1541 } |
1535 | 1542 |
1536 #ifdef FEAT_LINEBREAK | 1543 #ifdef FEAT_LINEBREAK |
1537 if (wp->w_briopt_sbr && wlv.draw_state == WL_BRI - 1 | 1544 if (wp->w_briopt_sbr && wlv.draw_state == WL_BRI - 1 |
1538 && wlv.n_extra == 0 | 1545 && wlv.n_extra == 0 |