diff options
Diffstat (limited to 'libcutils/trace-host.cpp')
-rw-r--r-- | libcutils/trace-host.cpp | 18 |
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 | |||
23 | atomic_bool atrace_is_ready = ATOMIC_VAR_INIT(true); | 19 | atomic_bool atrace_is_ready = ATOMIC_VAR_INIT(true); |
24 | int atrace_marker_fd = -1; | 20 | int atrace_marker_fd = -1; |
25 | uint64_t atrace_enabled_tags = 0; | 21 | uint64_t atrace_enabled_tags = 0; |
26 | 22 | ||
27 | void atrace_set_debuggable(bool debuggable __unused) { } | 23 | void atrace_set_debuggable(bool /*debuggable*/) {} |
28 | void atrace_set_tracing_enabled(bool enabled __unused) { } | 24 | void atrace_set_tracing_enabled(bool /*enabled*/) {} |
29 | void atrace_update_tags() { } | 25 | void atrace_update_tags() { } |
30 | void atrace_setup() { } | 26 | void atrace_setup() { } |
31 | void atrace_begin_body(const char* name __unused) { } | 27 | void atrace_begin_body(const char* /*name*/) {} |
32 | void atrace_end_body() { } | 28 | void atrace_end_body() { } |
33 | void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { } | 29 | void atrace_async_begin_body(const char* /*name*/, int32_t /*cookie*/) {} |
34 | void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { } | 30 | void atrace_async_end_body(const char* /*name*/, int32_t /*cookie*/) {} |
35 | void atrace_int_body(const char* name __unused, int32_t value __unused) { } | 31 | void atrace_int_body(const char* /*name*/, int32_t /*value*/) {} |
36 | void atrace_int64_body(const char* name __unused, int64_t value __unused) { } | 32 | void atrace_int64_body(const char* /*name*/, int64_t /*value*/) {} |