Skip to content

Commit e5436a3

Browse files
committed
chafa: Ignore the result better
1 parent d104360 commit e5436a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/chafa/chafa.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ fast_exit (void)
103103

104104
if (!options.polite)
105105
{
106+
G_GNUC_UNUSED volatile int result;
107+
106108
#ifdef HAVE_TERMIOS_H
107109
if (options.is_interactive)
108110
{
@@ -112,7 +114,7 @@ fast_exit (void)
112114

113115
/* There's nothing we can do if this fails. Work around
114116
* -Werror=unused-result. */
115-
(void) write (STDOUT_FILENO, fast_exit_seq, strlen (fast_exit_seq));
117+
result = write (STDOUT_FILENO, fast_exit_seq, strlen (fast_exit_seq));
116118
}
117119

118120
exit (0);

0 commit comments

Comments
 (0)