Fix a couple of unused parameter warnings in dexdump / dexlist.
Change-Id: Icbf3f1c332a2a06dfe0eb9037d32379329a63a4c
diff --git a/dexdump/DexDump.cpp b/dexdump/DexDump.cpp
index bfb5aa1..30286c9 100644
--- a/dexdump/DexDump.cpp
+++ b/dexdump/DexDump.cpp
@@ -605,7 +605,7 @@
}
}
-static int dumpPositionsCb(void *cnxt, u4 address, u4 lineNum)
+static int dumpPositionsCb(void * /* cnxt */, u4 address, u4 lineNum)
{
printf(" 0x%04x line=%d\n", address, lineNum);
return 0;
@@ -627,7 +627,7 @@
pDexMethod->accessFlags, dumpPositionsCb, NULL, NULL);
}
-static void dumpLocalsCb(void *cnxt, u2 reg, u4 startAddress,
+static void dumpLocalsCb(void * /* cnxt */, u2 reg, u4 startAddress,
u4 endAddress, const char *name, const char *descriptor,
const char *signature)
{
diff --git a/dexlist/DexList.cpp b/dexlist/DexList.cpp
index 03f0230..94eba4b 100644
--- a/dexlist/DexList.cpp
+++ b/dexlist/DexList.cpp
@@ -79,7 +79,7 @@
* first line in the method, which *should* correspond to the first
* entry from the table. (Could also use "min" here.)
*/
-static int positionsCallback(void* cnxt, u4 address, u4 lineNum)
+static int positionsCallback(void* cnxt, u4 /*address */, u4 lineNum)
{
int* pFirstLine = (int*) cnxt;
if (*pFirstLine == -1)
@@ -92,7 +92,7 @@
* Dump a method.
*/
void dumpMethod(DexFile* pDexFile, const char* fileName,
- const DexMethod* pDexMethod, int i)
+ const DexMethod* pDexMethod, int /* i */)
{
const DexMethodId* pMethodId;
const DexCode* pCode;