We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 990169b + 90ff12a commit 6eb3adfCopy full SHA for 6eb3adf
run-command.c
@@ -67,19 +67,21 @@ static int child_notifier = -1;
67
68
static void notify_parent(void)
69
{
70
- write(child_notifier, "", 1);
+ ssize_t unused;
71
+ unused = write(child_notifier, "", 1);
72
}
73
74
static NORETURN void die_child(const char *err, va_list params)
75
76
char msg[4096];
77
78
int len = vsnprintf(msg, sizeof(msg), err, params);
79
if (len > sizeof(msg))
80
len = sizeof(msg);
81
- write(child_err, "fatal: ", 7);
- write(child_err, msg, len);
82
- write(child_err, "\n", 1);
+ unused = write(child_err, "fatal: ", 7);
83
+ unused = write(child_err, msg, len);
84
+ unused = write(child_err, "\n", 1);
85
exit(128);
86
87
0 commit comments