aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2001-06-24 01:56:48 +0000
committerBen Elliston <bje@au.ibm.com>2001-06-24 01:56:48 +0000
commite21e484e83b032117b8a4b12917270addfb9aad7 (patch)
tree2787cfc1b2b104c9fa84fef4ff762a4890c66b09 /gas
parent62d964d8392e918a84e57b97b89ba282a7f4e9e4 (diff)
downloadgdb-e21e484e83b032117b8a4b12917270addfb9aad7.zip
gdb-e21e484e83b032117b8a4b12917270addfb9aad7.tar.gz
gdb-e21e484e83b032117b8a4b12917270addfb9aad7.tar.bz2
* fixes to silence all compiler warnings.
2001-06-24 Ben Elliston <bje@redhat.com> * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char. (md_parse_option): Mark parameters as unused. (md_show_usage): Ditto. (calcop): Adjust type of `reg_prefix' to char. (get_reg): Ditto. (getval): Adjust type of local `c' to char. (md_create_short_jump): Mark from_addr, to_addr params as unused. (md_create_long_jump): Ditto. (md_estimate_size_before_relax): Mark parameters as unused.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog10
-rw-r--r--gas/config/tc-m88k.c26
2 files changed, 24 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5b6b791..b84d812 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,15 @@
2001-06-24 Ben Elliston <bje@redhat.com>
+ * config/tc-m88k.c (get_reg): Adjust type of `reg_prefix' to char.
+ (md_parse_option): Mark parameters as unused.
+ (md_show_usage): Ditto.
+ (calcop): Adjust type of `reg_prefix' to char.
+ (get_reg): Ditto.
+ (getval): Adjust type of local `c' to char.
+ (md_create_short_jump): Mark from_addr, to_addr params as unused.
+ (md_create_long_jump): Ditto.
+ (md_estimate_size_before_relax): Mark parameters as unused.
+
* config/tc-m88k.c (md_pseudo_table): Properly terminate the table
to allay a possible compiler warning.
diff --git a/gas/config/tc-m88k.c b/gas/config/tc-m88k.c
index 6c46baf..a21af86 100644
--- a/gas/config/tc-m88k.c
+++ b/gas/config/tc-m88k.c
@@ -129,7 +129,7 @@ static char *get_cr PARAMS ((char *param, unsigned *regnop));
static char *get_fcr PARAMS ((char *param, unsigned *regnop));
static char *get_imm16 PARAMS ((char *param, struct m88k_insn *insn));
static char *get_o6 PARAMS ((char *param, unsigned *valp));
-static char *get_reg PARAMS ((char *param, unsigned *regnop, int reg_prefix));
+static char *get_reg PARAMS ((char *param, unsigned *regnop, char reg_prefix));
static char *get_vec9 PARAMS ((char *param, unsigned *valp));
static char *getval PARAMS ((char *param, unsigned int *valp));
@@ -221,15 +221,15 @@ size_t md_longopts_size = sizeof (md_longopts);
int
md_parse_option (c, arg)
- int c;
- char *arg;
+ int c ATTRIBUTE_UNUSED;
+ char *arg ATTRIBUTE_UNUSED;
{
return 0;
}
void
md_show_usage (stream)
- FILE *stream;
+ FILE *stream ATTRIBUTE_UNUSED;
{
}
@@ -345,7 +345,7 @@ calcop (format, param, insn)
int f;
unsigned val;
unsigned opcode;
- int reg_prefix = 'r';
+ char reg_prefix = 'r';
insn->opcode = format->opcode;
opcode = 0;
@@ -477,9 +477,9 @@ static char *
get_reg (param, regnop, reg_prefix)
char *param;
unsigned *regnop;
- int reg_prefix;
+ char reg_prefix;
{
- unsigned c;
+ char c;
unsigned regno;
c = *param++;
@@ -910,7 +910,7 @@ getval (param, valp)
unsigned int *valp;
{
unsigned int val = 0;
- unsigned int c;
+ char c;
c = *param++;
if (c == '0')
@@ -1123,7 +1123,8 @@ int md_short_jump_size = 4;
void
md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol)
char *ptr;
- addressT from_addr, to_addr;
+ addressT from_addr ATTRIBUTE_UNUSED;
+ addressT to_addr ATTRIBUTE_UNUSED;
fragS *frag;
symbolS *to_symbol;
{
@@ -1145,7 +1146,8 @@ int md_long_jump_size = 4;
void
md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
char *ptr;
- addressT from_addr, to_addr;
+ addressT from_addr ATTRIBUTE_UNUSED;
+ addressT to_addr ATTRIBUTE_UNUSED;
fragS *frag;
symbolS *to_symbol;
{
@@ -1164,8 +1166,8 @@ md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol)
int
md_estimate_size_before_relax (fragP, segment_type)
- fragS *fragP;
- segT segment_type;
+ fragS *fragP ATTRIBUTE_UNUSED;
+ segT segment_type ATTRIBUTE_UNUSED;
{
as_fatal (_("Relaxation should never occur"));
return (-1);