From a06a4b45ef111908c1cb7138990ae36bd2c5d0c3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 8 Nov 2020 21:17:40 -0800 Subject: Clean up warnings, and panic if epoll fd expectations fail. --- src/platform/posix/posix_pipe.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/platform/posix/posix_pipe.c') 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 +// Copyright 2020 Staysail Systems, Inc. // // 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 -- cgit v1.2.3-70-g09d2