aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Lu2016-10-23 11:10:50 -0700
committerYifan Lu2016-10-23 11:10:50 -0700
commitc2d864c53c26b4b168b32fa18bf7f5dfbefb30de (patch)
tree5269c46175114c0a722e05aa7f90b0ed17f771b3
parentAdded execmem foreign write for Vita (diff)
downloadsubstitute-c2d864c53c26b4b168b32fa18bf7f5dfbefb30de.tar.gz
Fixed warning about unused function
Fixed warning about incompatible types
-rw-r--r--lib/arm/arch-transform-dis.inc.h2
-rw-r--r--lib/substitute-internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/arm/arch-transform-dis.inc.h b/lib/arm/arch-transform-dis.inc.h
index 4c44913..aa56a9c 100644
--- a/lib/arm/arch-transform-dis.inc.h
+++ b/lib/arm/arch-transform-dis.inc.h
@@ -36,7 +36,7 @@ void transform_dis_data(struct transform_dis_ctx *ctx, unsigned o0, unsigned o1,
/* We only care if at least one op is PC, so quickly approximate that. */
if (((o0 | o1 | o2 | o3) & 15) != 15)
return;
- unsigned *newval = ctx->base.newval;
+ uint32_t *newval = ctx->base.newval;
newval[0] = o0;
newval[1] = o1;
newval[2] = o2;
diff --git a/lib/substitute-internal.h b/lib/substitute-internal.h
index c9b78f0..3e0691d 100644
--- a/lib/substitute-internal.h
+++ b/lib/substitute-internal.h
@@ -104,7 +104,7 @@ int substitute_dlopen_in_pid(int pid, const char *filename, int options,
int substitute_ios_unrestrict(task_t task, char **error);
#endif
-static const char *xbasename(const char *path) {
+static UNUSED const char *xbasename(const char *path) {
const char *slash = strrchr(path, '/');
return slash ? slash + 1 : path;
}