We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
absl/log/internal
1 parent e304ff5 commit fa57bfcCopy full SHA for fa57bfc
absl/log/internal/strip.h
@@ -31,6 +31,13 @@
31
// logging in subtly different ways for subtly different reasons (see below).
32
#if defined(STRIP_LOG) && STRIP_LOG
33
34
+// Attribute for marking variables used in implementation details of logging
35
+// macros as unused, but only when `STRIP_LOG` is defined.
36
+// With `STRIP_LOG` on, not marking them triggers `-Wunused-but-set-variable`,
37
+// With `STRIP_LOG` off, marking them triggers `-Wused-but-marked-unused`.
38
+//
39
+// TODO(b/290784225): Replace this macro with attribute [[maybe_unused]] when
40
+// Abseil stops supporting C++14.
41
#define ABSL_LOG_INTERNAL_ATTRIBUTE_UNUSED_IF_STRIP_LOG ABSL_ATTRIBUTE_UNUSED
42
43
#define ABSL_LOGGING_INTERNAL_LOG_INFO ::absl::log_internal::NullStream()
0 commit comments