Summary:
D2872406 enables -Werror=unused-parameter, which in conjunction with mode/opt
(which eliminates asserts) causes two files in folly/io/async to fail to compile.
This change works around the error.
Reviewed By: vchalyshev
Differential Revision:
D2874625
fb-gh-sync-id:
97104679f964390c5df88ee7831af7df243a152a
AsyncTimeout* timeout = reinterpret_cast<AsyncTimeout*>(arg);
assert(fd == -1);
assert(events == EV_TIMEOUT);
+ // prevent unused variable warnings
+ (void)fd;
+ (void)events;
// double check that ev_flags gets reset when the timeout is not running
assert((event_ref_flags(&timeout->event_) & ~EVLIST_INTERNAL) == EVLIST_INIT);
void EventHandler::libeventCallback(int fd, short events, void* arg) {
EventHandler* handler = reinterpret_cast<EventHandler*>(arg);
assert(fd == handler->event_.ev_fd);
+ (void)fd; // prevent unused variable warnings
auto observer = handler->eventBase_->getExecutionObserver();
if (observer) {