summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorChristopher N. Hesse <raymanfx@gmail.com>2014-12-04 21:50:43 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-11-02 17:30:14 +0100
commitf3f3949b32fe94efa4852c7b9160401d3e7c8410 (patch)
tree0a861eeb9a07488edabc9f8e60f00669ab995da2 /libs/binder
parentaf2d946f2de04cd1a53da443e8f9129f7759e335 (diff)
downloadframeworks_native-f3f3949b32fe94efa4852c7b9160401d3e7c8410.zip
frameworks_native-f3f3949b32fe94efa4852c7b9160401d3e7c8410.tar.gz
frameworks_native-f3f3949b32fe94efa4852c7b9160401d3e7c8410.tar.bz2
binder: MemoryHeapIon: fix unused parameters
Using the __attribute__((unused)) preprocessor directive Change-Id: I29d27fd7eacb962ffa06ccd81ee48b48f3743243 (cherry picked from commit 047c69bb8e17eab6f3432fae200fe94f7e119755)
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/MemoryHeapIon.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/binder/MemoryHeapIon.cpp b/libs/binder/MemoryHeapIon.cpp
index 374b72e..c547395 100644
--- a/libs/binder/MemoryHeapIon.cpp
+++ b/libs/binder/MemoryHeapIon.cpp
@@ -98,7 +98,8 @@ uint32_t ion_FlagMask_valid_check(uint32_t flags)
return result;
}
-MemoryHeapIon::MemoryHeapIon(size_t size, uint32_t flags, char const *name):MemoryHeapBase()
+MemoryHeapIon::MemoryHeapIon(size_t size, uint32_t flags,
+ __attribute__((unused))char const *name):MemoryHeapBase()
{
void* base = NULL;
int fd = -1;
@@ -146,7 +147,8 @@ MemoryHeapIon::MemoryHeapIon(size_t size, uint32_t flags, char const *name):Memo
}
}
-MemoryHeapIon::MemoryHeapIon(int fd, size_t size, uint32_t flags, uint32_t offset):MemoryHeapBase()
+MemoryHeapIon::MemoryHeapIon(int fd, size_t size, uint32_t flags,
+ __attribute__((unused))uint32_t offset):MemoryHeapBase()
{
void* base = NULL;
int dup_fd = -1;