Cast unused variable to void

Fixes -wunused-variable warning

PiperOrigin-RevId: 478886333
Change-Id: Ib84def2ddaf6a6860606e78603c2c25865ce2814
pull/1285/head
Abseil Team 2 years ago committed by Copybara-Service
parent 04672c69a0
commit d24156f63c
  1. 1
      absl/log/internal/log_sink_set.cc

@ -69,6 +69,7 @@ bool& ThreadIsLoggingStatus() {
}
return true;
}();
(void)unused; // Fixes -wunused-variable warning
bool* thread_is_logging_ptr =
reinterpret_cast<bool*>(pthread_getspecific(thread_is_logging_key));

Loading…
Cancel
Save