diff options
author | Abseil Team <absl-team@google.com> | 2022-10-04 14:38:02 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-10-04 14:38:41 -0700 |
commit | d24156f63ca6d44a0dc05e260ad7810b2fcf3405 (patch) | |
tree | 6c9a617bb20633e77fbd899292f83c9143a6a66f | |
parent | 04672c69a0df64bb2a62b231e383db3c7c68f506 (diff) |
Cast unused variable to void
Fixes -wunused-variable warning
PiperOrigin-RevId: 478886333
Change-Id: Ib84def2ddaf6a6860606e78603c2c25865ce2814
-rw-r--r-- | absl/log/internal/log_sink_set.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/log/internal/log_sink_set.cc b/absl/log/internal/log_sink_set.cc index 4fe301c6..f9d030aa 100644 --- a/absl/log/internal/log_sink_set.cc +++ b/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)); |