diff options
author | Dino Radakovic <dinor@google.com> | 2024-04-15 12:40:05 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-04-15 12:41:05 -0700 |
commit | e304ff50c379835eb36c509556ff8cc4321b451e (patch) | |
tree | 7c3f36231425bec0ca73c36304b349aed47146fe /conanfile.py | |
parent | 854193071498f330b71083d7e06a7cd18e02a4cc (diff) | |
download | abseil-e304ff50c379835eb36c509556ff8cc4321b451e.tar.gz abseil-e304ff50c379835eb36c509556ff8cc4321b451e.tar.bz2 abseil-e304ff50c379835eb36c509556ff8cc4321b451e.zip |
`log/internal/check_op`: Add ABSL_ATTRIBUTE_UNUSED to CHECK macros when STRIP_LOG is enabled
When `STRIP_LOG` is off, the internal variable `absl_log_internal_check_op_result` is passed to `absl::log_internal::LogMessageFatal()` and used in the failure message.
When `STRIP_LOG` is on, the variable is truly unused.
Applying a `ABSL_ATTRIBUTE_UNUSED` on the variable triggers `-Wused-but-marked-unused` when `STRIP_LOG` is off, not applying the attribute triggers `-Wunused-but-set-variable` when `STRIP_LOG` is on.
Define a new internal macro `ABSL_LOG_INTERNAL_ATTRIBUTE_UNUSED_IF_STRIP_LOG` that evaluates to `ABSL_ATTRIBUTE_UNUSED` when `STRIP_LOG` is on and nothing when `STRIP_LOG` is off to address both of these scenarios.
PiperOrigin-RevId: 625049155
Change-Id: Ia3f8a6ca916dd67a287bbda4b9bd6c574c92247a
Diffstat (limited to 'conanfile.py')
0 files changed, 0 insertions, 0 deletions