fix compile time warning messages

This commit is contained in:
Nick Clifton 2001-09-24 14:47:10 +00:00
parent 7ab98e9e4f
commit 89b57c9acc
3 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
* config/tc-arc.c: Add missing prototype.
(md_atof): Change type to int. Add missing prototype.
* config/tc-arc.h: Prototype exported functions.
2001-09-22 Nick Clifton <nickc@cambridge.redhat.com> 2001-09-22 Nick Clifton <nickc@cambridge.redhat.com>
* as.c: Add missing function prototype. * as.c: Add missing function prototype.

View File

@ -46,9 +46,11 @@ static void arc_common PARAMS ((int));
static void arc_extinst PARAMS ((int)); static void arc_extinst PARAMS ((int));
static void arc_extoper PARAMS ((int)); static void arc_extoper PARAMS ((int));
static void arc_option PARAMS ((int)); static void arc_option PARAMS ((int));
static int get_arc_exp_reloc_type PARAMS ((int, int, expressionS *, static int get_arc_exp_reloc_type PARAMS ((int, int, expressionS *,
expressionS *)); expressionS *));
static void init_opcode_tables PARAMS ((int));
const struct suffix_classes { const struct suffix_classes {
char *name; char *name;
int len; int len;
@ -1537,7 +1539,7 @@ arc_option (ignore)
char * char *
md_atof (type, litP, sizeP) md_atof (type, litP, sizeP)
char type; int type;
char *litP; char *litP;
int *sizeP; int *sizeP;
{ {
@ -1545,7 +1547,7 @@ md_atof (type, litP, sizeP)
LITTLENUM_TYPE words[MAX_LITTLENUMS]; LITTLENUM_TYPE words[MAX_LITTLENUMS];
LITTLENUM_TYPE *wordP; LITTLENUM_TYPE *wordP;
char *t; char *t;
char *atof_ieee (); char * atof_ieee PARAMS ((char *, int, LITTLENUM_TYPE *));
switch (type) switch (type)
{ {

View File

@ -59,11 +59,11 @@ extern const char *arc_target_format;
/* The ARC needs to parse reloc specifiers in .word. */ /* The ARC needs to parse reloc specifiers in .word. */
extern void arc_parse_cons_expression (); extern void arc_parse_cons_expression PARAMS ((struct expressionS *, unsigned));
#define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \ #define TC_PARSE_CONS_EXPRESSION(EXP, NBYTES) \
arc_parse_cons_expression (EXP, NBYTES) arc_parse_cons_expression (EXP, NBYTES)
extern void arc_cons_fix_new (); extern void arc_cons_fix_new PARAMS ((struct frag *, int, int, struct expressionS *));
#define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \ #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP) arc_cons_fix_new (FRAG, WHERE, NBYTES, EXP)