Add [[maybe_unused]] QUICHE_LOG_IF is removed in some build. PiperOrigin-RevId: 610504919
diff --git a/quiche/quic/tools/interactive_cli.cc b/quiche/quic/tools/interactive_cli.cc index 692b180..93e373a 100644 --- a/quiche/quic/tools/interactive_cli.cc +++ b/quiche/quic/tools/interactive_cli.cc
@@ -41,7 +41,7 @@ QUICHE_LOG(FATAL) << "Both stdin and stdout must be a TTY"; } - bool success = + [[maybe_unused]] bool success = event_loop_->RegisterSocket(STDIN_FILENO, kSocketEventReadable, this); QUICHE_LOG_IF(FATAL, !success) << "Failed to register stdin with the event loop"; @@ -66,7 +66,7 @@ tcsetattr(STDIN_FILENO, TCSANOW, reinterpret_cast<termios*>(old_termios_.get())); } - bool success = event_loop_->UnregisterSocket(STDIN_FILENO); + [[maybe_unused]] bool success = event_loop_->UnregisterSocket(STDIN_FILENO); QUICHE_LOG_IF(ERROR, !success) << "Failed to unregister stdin"; }