mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
notmuch: Quiet buildbot warnings.
Cast away the result of various *write functions. Provide a default value for some variables to avoid "use before set" warnings.
This commit is contained in:
parent
e3260d0253
commit
77ec8108a1
4 changed files with 4 additions and 4 deletions
|
@ -1447,7 +1447,7 @@ _notmuch_database_link_message_to_parents (notmuch_database_t *notmuch,
|
|||
keys = g_hash_table_get_keys (parents);
|
||||
for (l = keys; l; l = l->next) {
|
||||
char *parent_message_id;
|
||||
const char *parent_thread_id;
|
||||
const char *parent_thread_id = NULL;
|
||||
|
||||
parent_message_id = (char *) l->data;
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ handle_sigint (unused (int sig))
|
|||
{
|
||||
static char msg[] = "Stopping... \n";
|
||||
|
||||
write(2, msg, sizeof(msg)-1);
|
||||
(void) write(2, msg, sizeof(msg)-1);
|
||||
interrupted = 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -866,7 +866,7 @@ do_show_single (void *ctx,
|
|||
|
||||
while (!feof (file)) {
|
||||
size = fread (buf, 1, sizeof (buf), file);
|
||||
fwrite (buf, size, 1, stdout);
|
||||
(void) fwrite (buf, size, 1, stdout);
|
||||
}
|
||||
|
||||
fclose (file);
|
||||
|
|
|
@ -26,7 +26,7 @@ static void
|
|||
handle_sigint (unused (int sig))
|
||||
{
|
||||
static char msg[] = "Stopping... \n";
|
||||
write(2, msg, sizeof(msg)-1);
|
||||
(void) write(2, msg, sizeof(msg)-1);
|
||||
interrupted = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue