From d626436c549e4c334b9eeabfd33899e2e85bd97b Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 27 Aug 2019 05:27:44 -0400 Subject: [PATCH] Unused return values. --- x11/x11.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/x11/x11.c b/x11/x11.c index 35f188cf..621f33dc 100644 --- a/x11/x11.c +++ b/x11/x11.c @@ -516,7 +516,7 @@ static int _new_packet(chtype attr, int len, int col, int row, /* The core display routine -- update one line of text */ -static int _display_text(const chtype *ch, int row, int col, int num_cols) +static void _display_text(const chtype *ch, int row, int col, int num_cols) { #ifdef PDC_WIDE XChar2b text[513]; @@ -530,7 +530,7 @@ static int _display_text(const chtype *ch, int row, int col, int num_cols) "num_cols: %d\n", XCLOGMSG, row, col, num_cols)); if (!num_cols) - return OK; + return; old_attr = *ch & A_ATTRIBUTES; @@ -558,7 +558,7 @@ static int _display_text(const chtype *ch, int row, int col, int num_cols) if (attr != old_attr) { if (_new_packet(old_attr, i, col, row, text) == ERR) - return ERR; + return; old_attr = attr; col += i; @@ -573,7 +573,7 @@ static int _display_text(const chtype *ch, int row, int col, int num_cols) #endif } - return _new_packet(old_attr, i, col, row, text); + _new_packet(old_attr, i, col, row, text); } static void _get_gc(GC *gc, XFontStruct *font_info, int fore, int back)