diff options
author | Keith Kanios <spook@dynatos.net> | 2007-04-14 00:46:25 +0000 |
---|---|---|
committer | Keith Kanios <spook@dynatos.net> | 2007-04-14 00:46:25 +0000 |
commit | c7ae18dba1c3085dc8cd12a6fdcbfc59eda8bf1c (patch) | |
tree | 46e9d2ba39cea0df3ab6679adb00b25ee2fab9f0 /output | |
parent | 93f2e9a5a1c46c3203a9df0933301f42b2b88eb9 (diff) | |
download | nasm-c7ae18dba1c3085dc8cd12a6fdcbfc59eda8bf1c.tar.gz nasm-c7ae18dba1c3085dc8cd12a6fdcbfc59eda8bf1c.tar.bz2 nasm-c7ae18dba1c3085dc8cd12a6fdcbfc59eda8bf1c.zip |
Placated unreferenced types.
Diffstat (limited to 'output')
-rw-r--r-- | output/outaout.c | 8 | ||||
-rw-r--r-- | output/outas86.c | 14 | ||||
-rw-r--r-- | output/outbin.c | 3 | ||||
-rw-r--r-- | output/outcoff.c | 7 | ||||
-rw-r--r-- | output/outelf.c | 19 | ||||
-rw-r--r-- | output/outmacho.c | 10 | ||||
-rw-r--r-- | output/outrdf2.c | 9 |
7 files changed, 69 insertions, 1 deletions
diff --git a/output/outaout.c b/output/outaout.c index b6164f5..e046e0e 100644 --- a/output/outaout.c +++ b/output/outaout.c @@ -220,6 +220,9 @@ static void aout_cleanup(int debuginfo) static int32_t aout_section_names(char *name, int pass, int *bits) { + + (void)pass; + /* * Default to 32 bits. */ @@ -888,6 +891,9 @@ static int32_t aout_segbase(int32_t segment) static int aout_directive(char *directive, char *value, int pass) { + (void)directive; + (void)value; + (void)pass; return 0; } @@ -905,6 +911,8 @@ static const char *aout_stdmac[] = { static int aout_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } #endif /* OF_AOUT || OF_AOUTB */ diff --git a/output/outas86.c b/output/outas86.c index c2c5e92..135ddda 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -87,6 +87,7 @@ static void as86_init(FILE * fp, efunc errfunc, ldfunc ldef, evalfunc eval) as86fp = fp; error = errfunc; (void)ldef; /* placate optimisers */ + (void)eval; stext.data = saa_init(1L); stext.datalen = 0L; stext.head = stext.last = NULL; @@ -137,6 +138,9 @@ static void as86_cleanup(int debuginfo) static int32_t as86_section_names(char *name, int pass, int *bits) { + + (void)pass; + /* * Default is 16 bits. */ @@ -578,6 +582,9 @@ static int32_t as86_segbase(int32_t segment) static int as86_directive(char *directive, char *value, int pass) { + (void)directive; + (void)value; + (void)pass; return 0; } @@ -603,11 +610,18 @@ static const char *as86_stdmac[] = { static int as86_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } void as86_linenumber(char *name, int32_t segment, int32_t offset, int is_main, int lineno) { + (void)name; + (void)segment; + (void)offset; + (void)is_main; + (void)lineno; } struct ofmt of_as86 = { "Linux as86 (bin86 version 0.3) object files", diff --git a/output/outbin.c b/output/outbin.c index 858c512..083de72 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -205,6 +205,7 @@ static struct Section *create_section(char *name) static void bin_cleanup(int debuginfo) { + (void)debuginfo; /* placate optimizers */ struct Section *g, **gp; struct Section *gs = NULL, **gsp; struct Section *s, **sp; @@ -1384,6 +1385,8 @@ static int32_t bin_segbase(int32_t segment) static int bin_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } diff --git a/output/outcoff.c b/output/outcoff.c index 78331ea..6669424 100644 --- a/output/outcoff.c +++ b/output/outcoff.c @@ -135,6 +135,7 @@ static void coff_win32_init(FILE * fp, efunc errfunc, { win32 = TRUE; win64 = FALSE; (void)ldef; /* placate optimizers */ + (void)eval; coff_gen_init(fp, errfunc); } @@ -144,6 +145,7 @@ static void coff_win64_init(FILE * fp, efunc errfunc, maxbits = 64; win32 = FALSE; win64 = TRUE; (void)ldef; /* placate optimizers */ + (void)eval; coff_gen_init(fp, errfunc); } @@ -152,6 +154,7 @@ static void coff_std_init(FILE * fp, efunc errfunc, ldfunc ldef, { win32 = win64 = FALSE; (void)ldef; /* placate optimizers */ + (void)eval; coff_gen_init(fp, errfunc); } @@ -414,6 +417,8 @@ static int32_t coff_add_reloc(struct Section *sect, int32_t segment, { struct Reloc *r; + (void)size64; + r = *sect->tail = nasm_malloc(sizeof(struct Reloc)); sect->tail = &r->next; r->next = NULL; @@ -886,6 +891,8 @@ static const char *coff_stdmac[] = { static int coff_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } #endif /* defined(OF_COFF) || defined(OF_WIN32) */ diff --git a/output/outelf.c b/output/outelf.c index 6ef1ba2..804e021 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -1230,6 +1230,9 @@ static int32_t elf_segbase(int32_t segment) static int elf_directive(char *directive, char *value, int pass) { + (void)directive; + (void)value; + (void)pass; return 0; } @@ -1248,6 +1251,8 @@ static const char *elf_stdmac[] = { }; static int elf_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } @@ -1287,10 +1292,16 @@ struct ofmt of_elf = { void stabs_init(struct ofmt *of, void *id, FILE * fp, efunc error) { + (void)of; + (void)id; + (void)fp; + (void)error; } void stabs_linenum(const char *filename, int32_t linenumber, int32_t segto) { + (void)segto; + if (!stabs_filename) { stabs_filename = (char *)nasm_malloc(strlen(filename) + 1); strcpy(stabs_filename, filename); @@ -1313,14 +1324,22 @@ void stabs_linenum(const char *filename, int32_t linenumber, int32_t segto) void stabs_deflabel(char *name, int32_t segment, int32_t offset, int is_global, char *special) { + (void)name; + (void)segment; + (void)offset; + (void)is_global; + (void)special; } void stabs_directive(const char *directive, const char *params) { + (void)directive; + (void)params; } void stabs_typevalue(int32_t type) { + (void)type; } void stabs_output(int type, void *param) diff --git a/output/outmacho.c b/output/outmacho.c index ee2f420..4043d02 100644 --- a/output/outmacho.c +++ b/output/outmacho.c @@ -88,7 +88,7 @@ static struct sectmap { ".data", "__DATA", "__data", S_REGULAR}, { ".rodata", "__DATA", "__const", S_REGULAR}, { ".bss", "__DATA", "__bss", S_ZEROFILL}, { -NULL, NULL, NULL}}; +NULL, NULL, NULL, NULL}}; struct reloc { /* nasm internal data */ @@ -324,6 +324,8 @@ static void macho_init(FILE * fp, efunc errfunc, ldfunc ldef, static int macho_setinfo(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } @@ -519,6 +521,9 @@ static void macho_output(int32_t secto, const void *data, uint32_t type, static int32_t macho_section(char *name, int pass, int *bits) { + + (void)pass; + int32_t index, originalIndex; char *sectionAttributes; struct sectmap *sm; @@ -703,6 +708,9 @@ static int32_t macho_segbase(int32_t section) static int macho_directive(char *directive, char *value, int pass) { + (void)directive; + (void)value; + (void)pass; return 0; } diff --git a/output/outrdf2.c b/output/outrdf2.c index 15f9b3a..9fa2153 100644 --- a/output/outrdf2.c +++ b/output/outrdf2.c @@ -84,6 +84,10 @@ static int32_t headerlength; static void rdf2_init(FILE * fp, efunc errfunc, ldfunc ldef, evalfunc eval) { + + (void)ldef; + (void)eval; + int segtext, segdata, segbss; /* set up the initial segments */ @@ -129,6 +133,9 @@ static void rdf2_init(FILE * fp, efunc errfunc, ldfunc ldef, evalfunc eval) static int32_t rdf2_section_names(char *name, int pass, int *bits) { + + (void)pass; + int i; char *p, *q; int code = -1; @@ -759,6 +766,8 @@ static const char *rdf2_stdmac[] = { static int rdf2_set_info(enum geninfo type, char **val) { + (void)type; + (void)val; return 0; } |