diff options
author | Chih-Hung Hsieh <chh@google.com> | 2019-01-02 10:59:48 -0800 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2019-01-02 11:04:05 -0800 |
commit | 770032ddfa31f6ed18e6ec85013b7939cd291eb0 (patch) | |
tree | 28dc26ae8a6b3623e79d1bb2b19fd5362477843c /benchmarks | |
parent | 7bd54ade8d12762ef6bdb0096f3838261f14eee5 (diff) | |
download | android_bionic-770032ddfa31f6ed18e6ec85013b7939cd291eb0.tar.gz android_bionic-770032ddfa31f6ed18e6ec85013b7939cd291eb0.tar.bz2 android_bionic-770032ddfa31f6ed18e6ec85013b7939cd291eb0.zip |
Fix/suppress bionic google-explicit-constructor warnings
* Add explicit to conversion constructors/operators
Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id1ad0327c1b8c6f094bcbb3ae599bc1f716b3f2f
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/pthread_benchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/pthread_benchmark.cpp b/benchmarks/pthread_benchmark.cpp index 09654c825..9a68a12d0 100644 --- a/benchmarks/pthread_benchmark.cpp +++ b/benchmarks/pthread_benchmark.cpp @@ -100,7 +100,7 @@ namespace { struct PIMutex { pthread_mutex_t mutex; - PIMutex(int type) { + explicit PIMutex(int type) { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); pthread_mutexattr_settype(&attr, type); |