summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2012-12-12 12:47:29 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-12-12 12:47:29 -0800
commit0859b78db2b094d20efb7b3e725c4732fcdeb4d5 (patch)
tree65ae78dcce881eb833e11200ab060910c66aa159
parent189b270ae495859b86fe084e9269403faffe8bca (diff)
parent6dbe6d4d0fb437e15ef578653950c8422741bdf3 (diff)
downloadframeworks_native-0859b78db2b094d20efb7b3e725c4732fcdeb4d5.zip
frameworks_native-0859b78db2b094d20efb7b3e725c4732fcdeb4d5.tar.gz
frameworks_native-0859b78db2b094d20efb7b3e725c4732fcdeb4d5.tar.bz2
Merge "utils: fix warnings for unused parameters"
-rw-r--r--include/utils/Mutex.h4
-rw-r--r--include/utils/RWLock.h4
-rw-r--r--include/utils/RefBase.h4
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 99f5182..0a8e10a 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);
}