From 2e73ee71cd9a2e38a6b10550db896c350ac4b178 Mon Sep 17 00:00:00 2001 From: snek Date: Mon, 25 Jul 2022 00:25:16 -0700 Subject: [PATCH] memes --- src/yuzu/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 6c2690c23d..82a2fb83b6 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1368,14 +1368,16 @@ void GMainWindow::HandleSigInterrupt(int sig) { // Calling into Qt directly from a signal handler is not safe, // so wake up a QSocketNotifier with this hacky write call instead. char a = 1; - (void)write(sig_interrupt_fds[0], &a, sizeof(a)); + int ret = write(sig_interrupt_fds[0], &a, sizeof(a)); + (void)ret; } void GMainWindow::OnSigInterruptNotifierActivated() { sig_interrupt_notifier->setEnabled(false); char a; - (void)read(sig_interrupt_fds[1], &a, sizeof(a)); + int ret = read(sig_interrupt_fds[1], &a, sizeof(a)); + (void)ret; sig_interrupt_notifier->setEnabled(true);