From d24156f63ca6d44a0dc05e260ad7810b2fcf3405 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 4 Oct 2022 14:38:02 -0700 Subject: Cast unused variable to void Fixes -wunused-variable warning PiperOrigin-RevId: 478886333 Change-Id: Ib84def2ddaf6a6860606e78603c2c25865ce2814 --- absl/log/internal/log_sink_set.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'absl') 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(pthread_getspecific(thread_is_logging_key)); -- cgit v1.2.3