Browse Source

Fix the old "value computed is unused" warning triggered by ncurses.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
d5ecfdeb2f
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      caca/driver/ncurses.c

+ 1
- 2
caca/driver/ncurses.c View File

@@ -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++);
}



Loading…
Cancel
Save