summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2022-05-18 18:24:24 +0100
committerRoland Levillain <rpl@google.com>2022-05-18 18:27:21 +0100
commit8ce21d95f35b44c9f30b39b8c7a1abb51771ddf5 (patch)
tree6b25944c9955b43a1a94dbc7c41c25d273b13d5c
parentdef0fd4b34fcca2c7e8bec79522d36cc3be5b422 (diff)
downloaddalvik-8ce21d95f35b44c9f30b39b8c7a1abb51771ddf5.tar.gz
Silence a compiler warning about an unused variable in `hprof-conv`.
Test: mmm dalvik Change-Id: Ib7c40d354ce81bb1b57f0d08e76437c41d59c495
-rw-r--r--tools/hprof-conv/HprofConv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/hprof-conv/HprofConv.c b/tools/hprof-conv/HprofConv.c
index cc90176f9..c8847c944 100644
--- a/tools/hprof-conv/HprofConv.c
+++ b/tools/hprof-conv/HprofConv.c
@@ -663,7 +663,8 @@ static int filterData(FILE* in, FILE* out, int flags)
unsigned char* buf = ebGetBuffer(pBuf);
unsigned char type;
- unsigned int timestamp, length;
+ unsigned int timestamp ATTRIBUTE_UNUSED;
+ unsigned int length;
type = buf[0];
timestamp = get4BE(buf + 1);