Code

Silence warning about unused computed value
authorJonas Fonseca <fonseca@diku.dk>
Tue, 23 Mar 2010 01:58:30 +0000 (21:58 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Wed, 24 Mar 2010 12:57:17 +0000 (08:57 -0400)
tig.c

diff --git a/tig.c b/tig.c
index e3de8052417d058f13cab2983b938088f8cd8193..d9d3c214340c78202267a999126cdb960381d428 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2127,7 +2127,7 @@ static inline void
 set_view_attr(struct view *view, enum line_type type)
 {
        if (!view->curline->selected && view->curtype != type) {
-               wattrset(view->win, get_line_attr(type));
+               (void) wattrset(view->win, get_line_attr(type));
                wchgat(view->win, -1, 0, type, NULL);
                view->curtype = type;
        }