diff options
author | midipix <writeonce@midipix.org> | 2016-05-01 18:02:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-01 18:08:02 -0400 |
commit | d3ca02167a2789bbb53b676ce5ccdb7c1cc72e66 (patch) | |
tree | fd416dbb54610bff14dc0cc5a9e079eac3764f6d /src/logic | |
parent | 8d882590db0a4f1f72799ae54850246cab245ff1 (diff) | |
download | slibtool-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.c | 2 | ||||
-rw-r--r-- | src/logic/slbt_exec_execute.c | 1 | ||||
-rw-r--r-- | src/logic/slbt_exec_link.c | 2 |
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; |