summaryrefslogtreecommitdiffhomepage
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
parent8d882590db0a4f1f72799ae54850246cab245ff1 (diff)
downloadslibtool-d3ca02167a2789bbb53b676ce5ccdb7c1cc72e66.tar.bz2
slibtool-d3ca02167a2789bbb53b676ce5ccdb7c1cc72e66.tar.xz
code maintenance: mark unused parameters, remove an unused variable.
-rw-r--r--src/driver/slbt_driver_ctx.c2
-rw-r--r--src/internal/argv/argv.h2
-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
-rw-r--r--src/slibtool.c1
6 files changed, 9 insertions, 1 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1dc1358..8d8faa9 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -82,6 +82,8 @@ static void slbt_output_raw_vector(char ** argv, char ** envp)
const char * color;
bool fcolor;
+ (void)envp;
+
if ((fcolor = isatty(STDOUT_FILENO)))
fprintf(stderr,"%s%s",aclr_bold,aclr_red);
diff --git a/src/internal/argv/argv.h b/src/internal/argv/argv.h
index 81ab50e..d1ef9de 100644
--- a/src/internal/argv/argv.h
+++ b/src/internal/argv/argv.h
@@ -591,6 +591,8 @@ static void argv_show_status(
char short_name[2] = {0};
const char * space = "";
+ (void)ctx;
+
fputs("\n\nconcatenated command line:\n",stderr);
for (argv=meta->argv; *argv; argv++) {
fprintf(stderr,"%s%s",space,*argv);
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;
diff --git a/src/slibtool.c b/src/slibtool.c
index 3cce2ca..dac0153 100644
--- a/src/slibtool.c
+++ b/src/slibtool.c
@@ -66,6 +66,7 @@ static void slibtool_perform_driver_actions(struct slbt_driver_ctx * dctx)
static void slibtool_perform_unit_actions(struct slbt_unit_ctx * uctx)
{
+ (void)uctx;
}
static int slibtool_exit(struct slbt_driver_ctx * dctx, int nerrors)