summaryrefslogtreecommitdiffstats
path: root/libcutils/sched_policy.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-11-30 16:23:51 -0800
committerElliott Hughes <enh@google.com>2017-11-30 16:24:36 -0800
commit38d2567c9ffa089661e784b63a5448f8a16572c8 (patch)
treefbeef91072ff19233e17f50fb7cad67647448629 /libcutils/sched_policy.cpp
parentaaa0bbce8eadf1a428493f3524066a74447eded4 (diff)
downloadsystem_core-38d2567c9ffa089661e784b63a5448f8a16572c8.tar.gz
system_core-38d2567c9ffa089661e784b63a5448f8a16572c8.tar.bz2
system_core-38d2567c9ffa089661e784b63a5448f8a16572c8.zip
Stop defining local "unused" macros now this is C++.
Bug: N/A Test: builds, boots Change-Id: I3eb075d5003fa7cdc6690f4af29a296e22be257c
Diffstat (limited to 'libcutils/sched_policy.cpp')
-rw-r--r--libcutils/sched_policy.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libcutils/sched_policy.cpp b/libcutils/sched_policy.cpp
index 0e6d33333..f5ce82fea 100644
--- a/libcutils/sched_policy.cpp
+++ b/libcutils/sched_policy.cpp
@@ -27,8 +27,6 @@
#include <log/log.h>
-#define UNUSED __attribute__((__unused__))
-
/* Re-map SP_DEFAULT to the system default policy, and leave other values unchanged.
* Call this any place a SchedPolicy is used as an input parameter.
* Returns the possibly re-mapped policy.
@@ -445,13 +443,11 @@ int set_sched_policy(int tid, SchedPolicy policy)
/* Stubs for non-Android targets. */
-int set_sched_policy(int tid UNUSED, SchedPolicy policy UNUSED)
-{
+int set_sched_policy(int /*tid*/, SchedPolicy /*policy*/) {
return 0;
}
-int get_sched_policy(int tid UNUSED, SchedPolicy *policy)
-{
+int get_sched_policy(int /*tid*/, SchedPolicy* policy) {
*policy = SP_SYSTEM_DEFAULT;
return 0;
}