From d5ecfdeb2f332a7ae9d8629b515fc41b0c4e6415 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 14 Dec 2009 18:27:49 +0000 Subject: [PATCH] Fix the old "value computed is unused" warning triggered by ncurses. --- caca/driver/ncurses.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/caca/driver/ncurses.c b/caca/driver/ncurses.c index 2fd8132..8741830 100644 --- a/caca/driver/ncurses.c +++ b/caca/driver/ncurses.c @@ -365,8 +365,7 @@ static void ncurses_display(caca_display_t *dp) move(y, dx); for(x = dx; x < dx + dw; x++) { - /* FIXME: this emits a "value computed is unused" warning */ - attrset(dp->drv.p->attr[caca_attr_to_ansi(*cvattrs++)]); + (void)attrset(dp->drv.p->attr[caca_attr_to_ansi(*cvattrs++)]); ncurses_write_utf32(*cvchars++); }