summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2022-05-19 15:29:13 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-19 15:29:13 +0000
commitf95cfdb1df5dd7564d4b07282fac34225da058f3 (patch)
tree6b25944c9955b43a1a94dbc7c41c25d273b13d5c
parenta91c5e462cdf641ab0e21e87b29e21333913ea0e (diff)
parent5a81c499a569731e2395f7c8d13c0e0d4e17a2b6 (diff)
downloaddalvik-f95cfdb1df5dd7564d4b07282fac34225da058f3.tar.gz
Merge "Silence a compiler warning about an unused variable in `hprof-conv`." am: 5a81c499a5
Original change: https://android-review.googlesource.com/c/platform/dalvik/+/2101215 Change-Id: Ice9539df336b5ba05fff1269fe66c5b379420579 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-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);