1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +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 11e6a1e6c8
commit 92978dc59c

View file

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