From c3adc86d6b9da02603e665822df295372778e06c Mon Sep 17 00:00:00 2001 From: Matt Connolly Date: Mon, 2 Sep 2013 06:49:30 +1000 Subject: [PATCH] Fix unused variable when using eventfd --- src/signaler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/signaler.cpp b/src/signaler.cpp index 1bcacf59..30deb1ec 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -267,7 +267,9 @@ void zmq::signaler_t::recv () void zmq::signaler_t::forked() { int oldr = r; +#if !defined ZMQ_HAVE_EVENTFD int oldw = w; +#endif // replace the file descriptors created in the parent with new // ones, and close the inherited ones