aboutsummaryrefslogtreecommitdiff
path: root/tcctools.c
diff options
context:
space:
mode:
authorLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-08 08:30:43 -0700
committerLarry Doolittle <ldoolitt@recycle.lbl.gov>2017-05-08 08:30:43 -0700
commit7443db0d5f841b81a55e918bf8c228dd20f9ddb2 (patch)
treee5ef3f96d1b421cfd053eb04e83984e3074c017d /tcctools.c
parent56df27502c17d29984474918cb3b8850671d8f39 (diff)
downloadtinycc-7443db0d5f841b81a55e918bf8c228dd20f9ddb2.tar.gz
tinycc-7443db0d5f841b81a55e918bf8c228dd20f9ddb2.tar.bz2
Remove some unused-parameter lint
Mark TCCState parameter as unused in tcc_undefine_symbol(), tcc_add_symbol(), tcc_print_stats(), asm_get_local_label_name(), use_section1(), tccpp_delete(), tcc_tool_ar(), tcc_tool_impdef(), and tcc_tool_cross(). Also mark it unused in tcc_add_bcheck() unless CONFIG_TCC_BCHECK. Remove it entirely in ld_next().
Diffstat (limited to 'tcctools.c')
-rw-r--r--tcctools.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcctools.c b/tcctools.c
index ac6850c..55050ad 100644
--- a/tcctools.c
+++ b/tcctools.c
@@ -104,6 +104,7 @@ ST_FUNC int tcc_tool_ar(TCCState *s1, int argc, char **argv)
const char *ops_conflict = "habdioptxN"; // unsupported but destructive if ignored.
int verbose = 0;
+ (void) s1; /* not used */
i_lib = 0; i_obj = 0; // will hold the index of the lib and first obj
for (i = 1; i < argc; i++) {
const char *a = argv[i];
@@ -321,6 +322,7 @@ ST_FUNC int tcc_tool_impdef(TCCState *s1, int argc, char **argv)
p = NULL;
v = 0;
+ (void) s1; /* not used */
for (i = 1; i < argc; ++i) {
const char *a = argv[i];
if ('-' == a[0]) {
@@ -433,6 +435,7 @@ the_end:
ST_FUNC void tcc_tool_cross(TCCState *s, char **argv, int option)
{
+ (void) s; (void) argv; /* not used */
tcc_error("-m%d not implemented.", option);
}
@@ -486,6 +489,7 @@ ST_FUNC void tcc_tool_cross(TCCState *s, char **argv, int target)
char *a0 = argv[0];
int prefix = tcc_basename(a0) - a0;
+ (void) s; /* not used */
snprintf(program, sizeof program,
"%.*s%s"
#ifdef TCC_TARGET_PE