summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-01 18:02:42 -0400
committermidipix <writeonce@midipix.org>2016-05-01 18:08:02 -0400
commitd3ca02167a2789bbb53b676ce5ccdb7c1cc72e66 (patch)
treefd416dbb54610bff14dc0cc5a9e079eac3764f6d /src/logic
parent8d882590db0a4f1f72799ae54850246cab245ff1 (diff)
downloadslibtool-d3ca02167a2789bbb53b676ce5ccdb7c1cc72e66.tar.bz2
slibtool-d3ca02167a2789bbb53b676ce5ccdb7c1cc72e66.tar.xz
code maintenance: mark unused parameters, remove an unused variable.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_compile.c2
-rw-r--r--src/logic/slbt_exec_execute.c1
-rw-r--r--src/logic/slbt_exec_link.c2
3 files changed, 4 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_compile.c b/src/logic/slbt_exec_compile.c
index ec19c22..3d04304 100644
--- a/src/logic/slbt_exec_compile.c
+++ b/src/logic/slbt_exec_compile.c
@@ -18,6 +18,8 @@ static int slbt_exec_compile_remove_file(
struct slbt_exec_ctx * ectx,
const char * target)
{
+ (void)ectx;
+
/* remove target (if any) */
if (!(unlink(target)) || (errno == ENOENT))
return 0;
diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c
index 7df18b2..33f7858 100644
--- a/src/logic/slbt_exec_execute.c
+++ b/src/logic/slbt_exec_execute.c
@@ -18,7 +18,6 @@ int slbt_exec_execute(
struct slbt_exec_ctx * ectx)
{
int ret;
- char ** parg;
char * program;
char * script;
char * base;
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 5538d6d..0230051 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -398,6 +398,8 @@ static int slbt_exec_link_remove_file(
struct slbt_exec_ctx * ectx,
const char * target)
{
+ (void)ectx;
+
/* remove target (if any) */
if (!(unlink(target)) || (errno == ENOENT))
return 0;