summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-09-16 10:12:52 -0700
committerColin Cross <ccross@android.com>2016-09-21 17:45:31 -0700
commit9993e799f1bffc20837eaf4a0260152f58041bae (patch)
treeaaaa9ac0e78ad3f045c1933cf6d92327af477dec /include
parentefee71c2defdea4f105d2ff71950f935d6ff2a27 (diff)
downloadsystem_core-9993e799f1bffc20837eaf4a0260152f58041bae.tar.gz
system_core-9993e799f1bffc20837eaf4a0260152f58041bae.tar.bz2
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 'include')
-rw-r--r--include/cutils/trace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cutils/trace.h b/include/cutils/trace.h
index c9790ade1..dc3833ffa 100644
--- a/include/cutils/trace.h
+++ b/include/cutils/trace.h
@@ -188,8 +188,8 @@ static inline void atrace_begin(uint64_t tag, const char* name)
static inline void atrace_end(uint64_t tag)
{
if (CC_UNLIKELY(atrace_is_tag_enabled(tag))) {
- char c = 'E';
- write(atrace_marker_fd, &c, 1);
+ void atrace_end_body();
+ atrace_end_body();
}
}