summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2019-01-10 08:54:45 -0800
committerAndreas Gampe <agampe@google.com>2019-01-10 08:54:45 -0800
commit468ffaeecfc189fe6b5548bffdf4fb6bafa49c6a (patch)
tree5aa2a725ca35c613240650057c100f6e26e3f105 /base
parent3ffb4ab82ad441826517671243b17583912932d2 (diff)
downloadsystem_core-468ffaeecfc189fe6b5548bffdf4fb6bafa49c6a.tar.gz
system_core-468ffaeecfc189fe6b5548bffdf4fb6bafa49c6a.tar.bz2
system_core-468ffaeecfc189fe6b5548bffdf4fb6bafa49c6a.zip
Libbase: NOLINT legacy unique_fd operator int
The use in implicit conversion is intentional. Test: m Change-Id: I6c756e772b274e8a525ba2ad792cc4a8e1fc0176
Diffstat (limited to 'base')
-rw-r--r--base/include/android-base/unique_fd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/include/android-base/unique_fd.h b/base/include/android-base/unique_fd.h
index 4e6c87982..c8d12cf89 100644
--- a/base/include/android-base/unique_fd.h
+++ b/base/include/android-base/unique_fd.h
@@ -103,7 +103,7 @@ class unique_fd_impl final {
void reset(int new_value = -1) { reset(new_value, nullptr); }
int get() const { return fd_; }
- operator int() const { return get(); }
+ operator int() const { return get(); } // NOLINT
int release() __attribute__((warn_unused_result)) {
tag(fd_, this, nullptr);