aboutsummaryrefslogtreecommitdiff
path: root/tccasm.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 /tccasm.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 'tccasm.c')
-rw-r--r--tccasm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccasm.c b/tccasm.c
index 5356b62..4d93b59 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -26,6 +26,7 @@ ST_FUNC int asm_get_local_label_name(TCCState *s1, unsigned int n)
char buf[64];
TokenSym *ts;
+ (void) s1; /* not used */
snprintf(buf, sizeof(buf), "L..%u", n);
ts = tok_alloc(buf, strlen(buf));
return ts->tok;
@@ -434,6 +435,7 @@ static void asm_free_labels(TCCState *st)
static void use_section1(TCCState *s1, Section *sec)
{
+ (void) s1; /* not used */
cur_text_section->data_offset = ind;
cur_text_section = sec;
ind = cur_text_section->data_offset;