We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d104360 commit e5436a3Copy full SHA for e5436a3
1 file changed
tools/chafa/chafa.c
@@ -103,6 +103,8 @@ fast_exit (void)
103
104
if (!options.polite)
105
{
106
+ G_GNUC_UNUSED volatile int result;
107
+
108
#ifdef HAVE_TERMIOS_H
109
if (options.is_interactive)
110
@@ -112,7 +114,7 @@ fast_exit (void)
112
114
113
115
/* There's nothing we can do if this fails. Work around
116
* -Werror=unused-result. */
- (void) write (STDOUT_FILENO, fast_exit_seq, strlen (fast_exit_seq));
117
+ result = write (STDOUT_FILENO, fast_exit_seq, strlen (fast_exit_seq));
118
}
119
120
exit (0);
0 commit comments