aboutsummaryrefslogtreecommitdiff
path: root/libtcc.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 /libtcc.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 'libtcc.c')
-rw-r--r--libtcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libtcc.c b/libtcc.c
index 3ce7b29..331baf3 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -702,6 +702,7 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s1, const char *sym)
{
TokenSym *ts;
Sym *s;
+ (void) s1; /* not used */
ts = tok_alloc(sym, strlen(sym));
s = define_find(ts->tok);
/* undefine symbol by putting an invalid name */
@@ -1191,6 +1192,7 @@ LIBTCCAPI int tcc_add_symbol(TCCState *s, const char *name, const void *val)
So it is handled here as if it were in a DLL. */
pe_putimport(s, 0, name, (uintptr_t)val);
#else
+ (void) s; /* not used */
set_elf_sym(symtab_section, (uintptr_t)val, 0,
ELFW(ST_INFO)(STB_GLOBAL, STT_NOTYPE), 0,
SHN_ABS, name);
@@ -1984,6 +1986,7 @@ LIBTCCAPI void tcc_set_options(TCCState *s, const char *r)
PUB_FUNC void tcc_print_stats(TCCState *s, unsigned total_time)
{
+ (void) s; /* not used */
if (total_time < 1)
total_time = 1;
if (total_bytes < 1)