summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes2017-11-30 18:23:51 -0600
committerElliott Hughes2017-11-30 18:24:36 -0600
commit38d2567c9ffa089661e784b63a5448f8a16572c8 (patch)
treefbeef91072ff19233e17f50fb7cad67647448629 /libcutils/trace-host.cpp
parentaaa0bbce8eadf1a428493f3524066a74447eded4 (diff)
downloadplatform-system-core-38d2567c9ffa089661e784b63a5448f8a16572c8.tar.gz
platform-system-core-38d2567c9ffa089661e784b63a5448f8a16572c8.tar.xz
platform-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/trace-host.cpp')
-rw-r--r--libcutils/trace-host.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/libcutils/trace-host.cpp b/libcutils/trace-host.cpp
index 05842cd7d..d47cc1861 100644
--- a/libcutils/trace-host.cpp
+++ b/libcutils/trace-host.cpp
@@ -16,21 +16,17 @@
16 16
17#include <cutils/trace.h> 17#include <cutils/trace.h>
18 18
19#ifndef __unused
20#define __unused __attribute__((__unused__))
21#endif
22
23atomic_bool atrace_is_ready = ATOMIC_VAR_INIT(true); 19atomic_bool atrace_is_ready = ATOMIC_VAR_INIT(true);
24int atrace_marker_fd = -1; 20int atrace_marker_fd = -1;
25uint64_t atrace_enabled_tags = 0; 21uint64_t atrace_enabled_tags = 0;
26 22
27void atrace_set_debuggable(bool debuggable __unused) { } 23void atrace_set_debuggable(bool /*debuggable*/) {}
28void atrace_set_tracing_enabled(bool enabled __unused) { } 24void atrace_set_tracing_enabled(bool /*enabled*/) {}
29void atrace_update_tags() { } 25void atrace_update_tags() { }
30void atrace_setup() { } 26void atrace_setup() { }
31void atrace_begin_body(const char* name __unused) { } 27void atrace_begin_body(const char* /*name*/) {}
32void atrace_end_body() { } 28void atrace_end_body() { }
33void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { } 29void atrace_async_begin_body(const char* /*name*/, int32_t /*cookie*/) {}
34void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { } 30void atrace_async_end_body(const char* /*name*/, int32_t /*cookie*/) {}
35void atrace_int_body(const char* name __unused, int32_t value __unused) { } 31void atrace_int_body(const char* /*name*/, int32_t /*value*/) {}
36void atrace_int64_body(const char* name __unused, int64_t value __unused) { } 32void atrace_int64_body(const char* /*name*/, int64_t /*value*/) {}