1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

libstore/daemon: make sure monitor is not considered "unused"

(cherry picked from commit 5c3682d7a1)
This commit is contained in:
Jörg Thalheim 2025-03-21 11:11:27 +01:00 committed by Mergify
parent 97f9f8e909
commit 8abb67b842

View file

@ -1025,6 +1025,7 @@ void processConnection(
{ {
#ifndef _WIN32 // TODO need graceful async exit support on Windows? #ifndef _WIN32 // TODO need graceful async exit support on Windows?
auto monitor = !recursive ? std::make_unique<MonitorFdHup>(from.fd) : nullptr; auto monitor = !recursive ? std::make_unique<MonitorFdHup>(from.fd) : nullptr;
(void) monitor; // suppress warning
#endif #endif
/* Exchange the greeting. */ /* Exchange the greeting. */