aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2019-01-02 10:59:48 -0800
committerChih-Hung Hsieh <chh@google.com>2019-01-02 11:04:05 -0800
commit770032ddfa31f6ed18e6ec85013b7939cd291eb0 (patch)
tree28dc26ae8a6b3623e79d1bb2b19fd5362477843c /benchmarks
parent7bd54ade8d12762ef6bdb0096f3838261f14eee5 (diff)
downloadandroid_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.cpp2
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);