diff --git a/main/source/window/linux_window.cpp b/main/source/window/linux_window.cpp index 492412086..b51c61247 100644 --- a/main/source/window/linux_window.cpp +++ b/main/source/window/linux_window.cpp @@ -9,6 +9,8 @@ #include #include + #include + #include #include #include @@ -27,7 +29,7 @@ namespace hex { // Various libraries sadly directly print to stderr with no way to disable it // We redirect stderr to /dev/null to prevent this - freopen("/dev/null", "w", stderr); + wolv::util::unused(freopen("/dev/null", "w", stderr)); setvbuf(stderr, nullptr, _IONBF, 0); // Redirect stdout to log file if we're not running in a terminal