Skip to content

Linux + iPhone Continuity / iMessage / SMS

fix: compiler warning

Zack Bartel988b27c07156
diff --git a/src/tui/main.cpp b/src/tui/main.cpp
index 9e31de9..e1b35ce 100644
--- a/src/tui/main.cpp
+++ b/src/tui/main.cpp
@@ -1404,7 +1404,7 @@ int main(int argc, char** argv) {
// Logs would scribble over the screen.
if (!std::getenv("TETHER_TUI_STDERR"))
- std::freopen("/dev/null", "w", stderr);
+ (void)!std::freopen("/dev/null", "w", stderr);
std::signal(SIGPIPE, SIG_IGN);
for (int sig : {SIGTERM, SIGHUP}) {