From 687050c4b4a1f48c7e26eabe1dbd5a5c67b63091 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 11 May 2023 12:15:55 +0200 Subject: [PATCH] MT#57405 warning: ignoring return value of 'int pipe(int*)' This fixes that: AmRtpReceiver.cpp: In member function 'virtual void AmRtpReceiverThread::run()': AmRtpReceiver.cpp:92:7: warning: ignoring return value of 'int pipe(int*)' declared with attribute 'warn_unused_result' [-Wunused-result] 92 | pipe(fake_fds); | ~~~~^~~~~~~~~~ Change-Id: I7a9488ce07f59955e94efa1812fb74cb86e2387d --- core/AmRtpReceiver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/AmRtpReceiver.cpp b/core/AmRtpReceiver.cpp index cdd05545..a2e75603 100644 --- a/core/AmRtpReceiver.cpp +++ b/core/AmRtpReceiver.cpp @@ -89,7 +89,10 @@ void AmRtpReceiverThread::run() { // fake event to prevent the event loop from exiting int fake_fds[2]; - pipe(fake_fds); + + if (pipe(fake_fds)) + WARN("Cannot read from pipe\n"); + struct event* ev_default = event_new(ev_base,fake_fds[0], EV_READ|EV_PERSIST,