summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Levillain <rpl@google.com>2022-05-19 16:15:05 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-05-19 16:15:05 +0000
commita2e756fe3854953cdad7d8f645a6cd4fbea20acc (patch)
tree6b25944c9955b43a1a94dbc7c41c25d273b13d5c
parent090cb5952bab050da27003badb2d27e279e62115 (diff)
parent90198b99b83ac24023b63f7a14610315737d3698 (diff)
downloaddalvik-a2e756fe3854953cdad7d8f645a6cd4fbea20acc.tar.gz
Merge "Silence a compiler warning about an unused variable in `hprof-conv`." am: 5a81c499a5 am: f95cfdb1df am: 90198b99b8
Original change: https://android-review.googlesource.com/c/platform/dalvik/+/2101215 Change-Id: Ia75d0a97875eafbe67a7f1cd92ba76f45c734e80 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);