diff options
author | Abseil Team <absl-team@google.com> | 2023-06-20 21:20:15 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-20 21:21:07 -0700 |
commit | 55e8345c57bf8d88342f634f279239d19e77826c (patch) | |
tree | 3394d219a785fca20966172046bfbb2e82c0648d /absl/synchronization/mutex.cc | |
parent | 94d77fe3604dd86b5198f942110c240f01242439 (diff) | |
download | abseil-55e8345c57bf8d88342f634f279239d19e77826c.tar.gz abseil-55e8345c57bf8d88342f634f279239d19e77826c.tar.bz2 abseil-55e8345c57bf8d88342f634f279239d19e77826c.zip |
absl: fix lint errors in Mutex
Currently linter warns on all changes:
missing #include <cstdlib> for 'std::atexit'
and
single-argument constructors must be marked explicit to avoid unintentional implicit conversions
Fix that.
PiperOrigin-RevId: 542135136
Change-Id: Ic86649de6baef7f2de71f45875bb66bd730bf6e1
Diffstat (limited to 'absl/synchronization/mutex.cc')
-rw-r--r-- | absl/synchronization/mutex.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/synchronization/mutex.cc b/absl/synchronization/mutex.cc index df7577b5..3aa5560a 100644 --- a/absl/synchronization/mutex.cc +++ b/absl/synchronization/mutex.cc @@ -36,6 +36,7 @@ #include <algorithm> #include <atomic> #include <cstddef> +#include <cstdlib> #include <cstring> #include <thread> // NOLINT(build/c++11) |