Code

colors: work around "value computed is not used" warning
authorMax Kellermann <max@duempel.org>
Mon, 23 Nov 2009 21:16:48 +0000 (22:16 +0100)
committerMax Kellermann <max@duempel.org>
Mon, 23 Nov 2009 21:16:48 +0000 (22:16 +0100)
Cast wattrset() to void.

src/colors.c

index a6c7e2cca9c665a741596483ac385bdf66a84a18..1b3300de8a40a0dc5a55b19609305963133a1fa8 100644 (file)
@@ -299,7 +299,7 @@ colors_use(WINDOW *w, enum color id)
 #endif
                /* mono mode */
                if (attrs != entry->attrs)
-                       wattrset(w, entry->attrs);
+                       (void)wattrset(w, entry->attrs);
 #ifdef ENABLE_COLORS
        }
 #endif