summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-06 17:03:10 -0400
committermidipix <writeonce@midipix.org>2016-05-06 17:03:10 -0400
commit3a51d216f279793fdbc18a9c95e367802efd4883 (patch)
tree52770b958a3cd9eacc618223372706ad05c5e0b9 /src
parent4cf844f1d2ff470208e93a22b2a4021bfe288fa4 (diff)
downloadapimagic-3a51d216f279793fdbc18a9c95e367802efd4883.tar.bz2
apimagic-3a51d216f279793fdbc18a9c95e367802efd4883.tar.xz
code maintenance: mark unused parameters.
Diffstat (limited to 'src')
-rw-r--r--src/driver/amgc_driver_ctx.c2
-rw-r--r--src/driver/amgc_unit_ctx.c2
-rw-r--r--src/output/amgc_output_compound.c2
-rw-r--r--src/output/amgc_output_typedef.c4
4 files changed, 10 insertions, 0 deletions
diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c
index ba753a1..66c9ba9 100644
--- a/src/driver/amgc_driver_ctx.c
+++ b/src/driver/amgc_driver_ctx.c
@@ -151,6 +151,8 @@ int amgc_get_driver_ctx(
size_t nactions;
const char * program;
+ (void)envp;
+
options = amgc_default_options;
if (!(meta = argv_get(argv,options,amgc_argv_flags(flags))))
diff --git a/src/driver/amgc_unit_ctx.c b/src/driver/amgc_unit_ctx.c
index 54abdaa..7e265c0 100644
--- a/src/driver/amgc_unit_ctx.c
+++ b/src/driver/amgc_unit_ctx.c
@@ -88,6 +88,8 @@ static bool amgc_cparser_no_op(
compilation_env_t * env,
compilation_unit_t * unit)
{
+ (void)env;
+ (void)unit;
return true;
}
diff --git a/src/output/amgc_output_compound.c b/src/output/amgc_output_compound.c
index fc95af7..312d475 100644
--- a/src/output/amgc_output_compound.c
+++ b/src/output/amgc_output_compound.c
@@ -279,6 +279,8 @@ static int output_compound_entity(
{
struct amgc_layout elayout;
+ (void)uctx;
+
if (layout && layout->symwidth)
return output_compound(aentity->entity,0,layout,fout);
diff --git a/src/output/amgc_output_typedef.c b/src/output/amgc_output_typedef.c
index 9af4329..f7b39d4 100644
--- a/src/output/amgc_output_typedef.c
+++ b/src/output/amgc_output_typedef.c
@@ -21,6 +21,8 @@ static int output_atomic_typedef(
int i;
const char * reftype;
+ (void)fout;
+
reftype = get_atomic_kind_name(aentity->reftype->atomic.akind);
if (fprintf(stdout,"typedef %s ",reftype) < 0)
@@ -44,6 +46,8 @@ int amgc_output_typedef(
{
int ret = 0;
+ (void)uctx;
+
if (layout && layout->header && (fputs(layout->header,fout) < 0))
return -1;