utils: fix warnings for unused parameters
Change-Id: Ibfb755a30ba2923669060fe0aed019beecbe38a1
This commit is contained in:
parent
653078f652
commit
6dbe6d4d0f
@ -91,10 +91,10 @@ private:
|
|||||||
inline Mutex::Mutex() {
|
inline Mutex::Mutex() {
|
||||||
pthread_mutex_init(&mMutex, NULL);
|
pthread_mutex_init(&mMutex, NULL);
|
||||||
}
|
}
|
||||||
inline Mutex::Mutex(const char* name) {
|
inline Mutex::Mutex(__attribute__((unused)) const char* name) {
|
||||||
pthread_mutex_init(&mMutex, NULL);
|
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) {
|
if (type == SHARED) {
|
||||||
pthread_mutexattr_t attr;
|
pthread_mutexattr_t attr;
|
||||||
pthread_mutexattr_init(&attr);
|
pthread_mutexattr_init(&attr);
|
||||||
|
@ -84,10 +84,10 @@ private:
|
|||||||
inline RWLock::RWLock() {
|
inline RWLock::RWLock() {
|
||||||
pthread_rwlock_init(&mRWLock, NULL);
|
pthread_rwlock_init(&mRWLock, NULL);
|
||||||
}
|
}
|
||||||
inline RWLock::RWLock(const char* name) {
|
inline RWLock::RWLock(__attribute__((unused)) const char* name) {
|
||||||
pthread_rwlock_init(&mRWLock, NULL);
|
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) {
|
if (type == SHARED) {
|
||||||
pthread_rwlockattr_t attr;
|
pthread_rwlockattr_t attr;
|
||||||
pthread_rwlockattr_init(&attr);
|
pthread_rwlockattr_init(&attr);
|
||||||
|
@ -165,10 +165,10 @@ class LightRefBase
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
inline LightRefBase() : mCount(0) { }
|
inline LightRefBase() : mCount(0) { }
|
||||||
inline void incStrong(const void* id) const {
|
inline void incStrong(__attribute__((unused)) const void* id) const {
|
||||||
android_atomic_inc(&mCount);
|
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) {
|
if (android_atomic_dec(&mCount) == 1) {
|
||||||
delete static_cast<const T*>(this);
|
delete static_cast<const T*>(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user