changeset 22603:c6ad67e373f5

lib: ostream-multiplex - ignore flush return value There's nothing that can be done about it at close() time. Silences static analyzer warnings.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Tue, 10 Oct 2017 15:38:13 +0300
parents f36d7c6d7533
children 98d99bf6511e
files src/lib/ostream-multiplex.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ostream-multiplex.c	Tue Oct 10 15:37:39 2017 +0300
+++ b/src/lib/ostream-multiplex.c	Tue Oct 10 15:38:13 2017 +0300
@@ -131,7 +131,7 @@
 {
 	struct multiplex_ochannel *const *channelp;
 	struct multiplex_ochannel *channel = (struct multiplex_ochannel*)stream;
-	o_stream_flush(&channel->ostream.ostream);
+	(void)o_stream_flush(&channel->ostream.ostream);
 
 	channel->closed = TRUE;
 	if (close_parent) {