aboutsummaryrefslogtreecommitdiff
path: root/tcctools.c
diff options
context:
space:
mode:
authorgrischka <grischka>2017-05-13 08:59:06 +0200
committergrischka <grischka>2017-05-13 08:59:06 +0200
commit28435ec58c2ef9bb571cad5f8a1129aea3ecc204 (patch)
treea08b77f90c9c24972e0fccd6c223af73b5b240f6 /tcctools.c
parent3a9d6b3655bd15e752e65a4f0f23f64f4ec56fe1 (diff)
downloadtinycc-28435ec58c2ef9bb571cad5f8a1129aea3ecc204.tar.gz
tinycc-28435ec58c2ef9bb571cad5f8a1129aea3ecc204.tar.bz2
configure: --config-musl/-uClibc switch & misc cleanups
- configure: - add --config-uClibc,-musl switch and suggest to use it if uClibc/musl is detected - make warning options magic clang compatible - simplify (use $confvars instead of individual options) - Revert "Remove some unused-parameter lint" 7443db0d5f841b81a55e918bf8c228dd20f9ddb2 rather use -Wno-unused-parameter (or just not -Wextra) - #ifdef functions that are unused on some targets - tccgen.c: use PTR_SIZE==8 instead of (X86_64 || ARM64) - tccpe.c: fix some warnings - integrate dummy arm-asm better
Diffstat (limited to 'tcctools.c')
-rw-r--r--tcctools.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tcctools.c b/tcctools.c
index 48c7153..a316527 100644
--- a/tcctools.c
+++ b/tcctools.c
@@ -104,7 +104,6 @@ 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];
@@ -322,7 +321,6 @@ 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]) {
@@ -435,7 +433,6 @@ 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);
}
@@ -489,7 +486,6 @@ 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