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

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

This commit is contained in:
Jörg Thalheim 2025-03-21 11:11:27 +01:00
parent b050db951b
commit 5c3682d7a1

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. */