]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: ostream-multiplex - ignore flush return value
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 10 Oct 2017 12:38:13 +0000 (15:38 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 10 Oct 2017 12:38:13 +0000 (15:38 +0300)
There's nothing that can be done about it at close() time. Silences static
analyzer warnings.

src/lib/ostream-multiplex.c

index 14e703e75b5b89304e3414a99d607d7f236d5202..6789391979615296c4468e9abfdbcfcdccdb40b1 100644 (file)
@@ -131,7 +131,7 @@ o_stream_multiplex_ochannel_close(struct iostream_private *stream, bool close_pa
 {
        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) {