diff options
author | Igor Murashkin <iam@google.com> | 2012-12-05 16:10:26 -0800 |
---|---|---|
committer | Alex Ray <aray@google.com> | 2013-07-30 13:57:00 -0700 |
commit | a27c1e08396aa2969511dad1f661d10c2b835ac1 (patch) | |
tree | cdcc096bb84cfbcce9e77c6e60ccc6a6c38e46e2 | |
parent | fcb349ff75272c802519a20abc0e083c35bbe8cf (diff) | |
download | system_core-a27c1e08396aa2969511dad1f661d10c2b835ac1.zip system_core-a27c1e08396aa2969511dad1f661d10c2b835ac1.tar.gz system_core-a27c1e08396aa2969511dad1f661d10c2b835ac1.tar.bz2 |
utils: fix warnings for unused parameters
Change-Id: Ibfb755a30ba2923669060fe0aed019beecbe38a1
-rw-r--r-- | include/utils/Mutex.h | 4 | ||||
-rw-r--r-- | include/utils/RWLock.h | 4 | ||||
-rw-r--r-- | include/utils/RefBase.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/utils/Mutex.h b/include/utils/Mutex.h index de6fb39..dd201c8 100644 --- a/include/utils/Mutex.h +++ b/include/utils/Mutex.h @@ -91,10 +91,10 @@ private: inline Mutex::Mutex() { pthread_mutex_init(&mMutex, NULL); } -inline Mutex::Mutex(const char* name) { +inline Mutex::Mutex(__attribute__((unused)) const char* name) { pthread_mutex_init(&mMutex, NULL); } -inline Mutex::Mutex(int type, const char* name) { +inline Mutex::Mutex(int type, __attribute__((unused)) const char* name) { if (type == SHARED) { pthread_mutexattr_t attr; pthread_mutexattr_init(&attr); diff --git a/include/utils/RWLock.h b/include/utils/RWLock.h index a5abea2..90beb5f 100644 --- a/include/utils/RWLock.h +++ b/include/utils/RWLock.h @@ -84,10 +84,10 @@ private: inline RWLock::RWLock() { pthread_rwlock_init(&mRWLock, NULL); } -inline RWLock::RWLock(const char* name) { +inline RWLock::RWLock(__attribute__((unused)) const char* name) { pthread_rwlock_init(&mRWLock, NULL); } -inline RWLock::RWLock(int type, const char* name) { +inline RWLock::RWLock(int type, __attribute__((unused)) const char* name) { if (type == SHARED) { pthread_rwlockattr_t attr; pthread_rwlockattr_init(&attr); diff --git a/include/utils/RefBase.h b/include/utils/RefBase.h index aa91f60..8e304e7 100644 --- a/include/utils/RefBase.h +++ b/include/utils/RefBase.h @@ -165,10 +165,10 @@ class LightRefBase { public: inline LightRefBase() : mCount(0) { } - inline void incStrong(const void* id) const { + inline void incStrong(__attribute__((unused)) const void* id) const { android_atomic_inc(&mCount); } - inline void decStrong(const void* id) const { + inline void decStrong(__attribute__((unused)) const void* id) const { if (android_atomic_dec(&mCount) == 1) { delete static_cast<const T*>(this); } |