diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-11-08 21:17:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-11-08 21:17:40 -0800 |
| commit | a06a4b45ef111908c1cb7138990ae36bd2c5d0c3 (patch) | |
| tree | 9c93557efe6f784b0f2810515b2fd35afda08014 /src/platform/posix/posix_pipe.c | |
| parent | 6cf8b299a4658a235033f77c2645b76043ff801e (diff) | |
| download | nng-a06a4b45ef111908c1cb7138990ae36bd2c5d0c3.tar.gz nng-a06a4b45ef111908c1cb7138990ae36bd2c5d0c3.tar.bz2 nng-a06a4b45ef111908c1cb7138990ae36bd2c5d0c3.zip | |
Clean up warnings, and panic if epoll fd expectations fail.
Diffstat (limited to 'src/platform/posix/posix_pipe.c')
| -rw-r--r-- | src/platform/posix/posix_pipe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/platform/posix/posix_pipe.c b/src/platform/posix/posix_pipe.c index fcca0aba..8132aff9 100644 --- a/src/platform/posix/posix_pipe.c +++ b/src/platform/posix/posix_pipe.c @@ -1,5 +1,5 @@ // -// Copyright 2017 Garrett D'Amore <garrett@damore.org> +// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this @@ -103,7 +103,10 @@ nni_plat_pipe_raise(int wfd) { char c = 1; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-result" (void) write(wfd, &c, 1); +#pragma GCC diagnostic pop } void |
