summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross2016-09-16 12:12:52 -0500
committerColin Cross2016-09-21 19:45:31 -0500
commit9993e799f1bffc20837eaf4a0260152f58041bae (patch)
treeaaaa9ac0e78ad3f045c1933cf6d92327af477dec /libcutils/trace-host.c
parentefee71c2defdea4f105d2ff71950f935d6ff2a27 (diff)
downloadplatform-system-core-9993e799f1bffc20837eaf4a0260152f58041bae.tar.gz
platform-system-core-9993e799f1bffc20837eaf4a0260152f58041bae.tar.xz
platform-system-core-9993e799f1bffc20837eaf4a0260152f58041bae.zip
Hide warning in cutils/trace.h
system/core/include is included in the global include path using -isystem, which hides all warnings. cutils/trace.h has an ignored return value warning, move the implementation to trace-dev.c so it doesn't cause warnings in every module that includes it in preparation for moving from -isystem to -I. Test: m -j native Bug: 31492149 Change-Id: If8b3fe13059c9e59c2d5208294d427d84fa6e588
Diffstat (limited to 'libcutils/trace-host.c')
-rw-r--r--libcutils/trace-host.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcutils/trace-host.c b/libcutils/trace-host.c
index 6478e3e52..05842cd7d 100644
--- a/libcutils/trace-host.c
+++ b/libcutils/trace-host.c
@@ -29,6 +29,7 @@ void atrace_set_tracing_enabled(bool enabled __unused) { }
29void atrace_update_tags() { } 29void atrace_update_tags() { }
30void atrace_setup() { } 30void atrace_setup() { }
31void atrace_begin_body(const char* name __unused) { } 31void atrace_begin_body(const char* name __unused) { }
32void atrace_end_body() { }
32void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { } 33void atrace_async_begin_body(const char* name __unused, int32_t cookie __unused) { }
33void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { } 34void atrace_async_end_body(const char* name __unused, int32_t cookie __unused) { }
34void atrace_int_body(const char* name __unused, int32_t value __unused) { } 35void atrace_int_body(const char* name __unused, int32_t value __unused) { }