On Sa, 23 Jun 2018, Yegappan Lakshmanan wrote:
> Hi,
>
> When building the latest version of tiny Vim on MacOS, I see the
> following warning message:
>
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X -g -Wall -Wextra
> -pedantic -o objects/screen.o screen.c
> screen.c:6877:32: warning: unused parameter 'ignore_pum' [-Wunused-parameter]
> win_redr_status(win_T *wp, int ignore_pum)
> ^
> 1 warning generated.
So I guess, we need
diff --git a/src/screen.c b/src/screen.c
index b5b68e4df..8373895e7 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -125,7 +125,7 @@ static int redrawing_for_callback = 0;
static schar_T *current_ScreenLine;
static void win_update(win_T *wp);
-static void win_redr_status(win_T *wp, int ignore_pum);
+static void win_redr_status(win_T *wp, int ignore_pum UNUSED);
static void win_draw_end(win_T *wp, int c1, int c2, int row, int endrow, hlf_T
hl);
#ifdef FEAT_FOLDING
static void fold_line(win_T *wp, long fold_count, foldinfo_T *foldinfo,
linenr_T lnum, int row);
@@ -6874,7 +6874,7 @@ win_redr_status_matches(
* displayed.
*/
static void
-win_redr_status(win_T *wp, int ignore_pum)
+win_redr_status(win_T *wp, int ignore_pum UNUSED)
{
int row;
char_u *p;
Best
Christian
--
Für Börsenspekulationen ist der Februar einer der gefährlichsten
Monate. Die anderen sind Juli, Januar, September, April, November,
Mai, März, Juni, Dezember, August und Oktober.
-- Mark Twain (eigl. Samuel Langhorne Clemens)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.