mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
-Wimplicit-fallthrough noreturn fixes
binutils/ * cxxfilt.c (usage): Add ATTRIBUTE_NORETURN. * elfedit.c (usage): Likewise. * nm.c (usage): Likewise. * objcopy.c (copy_usage, strip_usage): Likewise. * srconv.c (show_usage): Likewise. * strings.c (usage): Likewise. * sysdump.c (show_usage): Likewise. * srconv.c: Remove unneeded forward function declarations. * strings.c: Likewise. * sysdump.c: Likewise. gas/ * as.h (as_assert): Add ATTRIBUTE_NORETURN.
This commit is contained in:
@@ -43,52 +43,12 @@ static int addrsize;
|
||||
static char *toolname;
|
||||
static char **rnames;
|
||||
|
||||
static int get_member_id (int);
|
||||
static int get_ordinary_id (int);
|
||||
static char *section_translate (char *);
|
||||
static char *strip_suffix (const char *);
|
||||
static void checksum (FILE *, unsigned char *, int, int);
|
||||
static void writeINT (int, unsigned char *, int *, int, FILE *);
|
||||
static void writeBITS (int, unsigned char *, int *, int);
|
||||
static void writeBARRAY (barray, unsigned char *, int *, int, FILE *);
|
||||
static void writeCHARS (char *, unsigned char *, int *, int, FILE *);
|
||||
static void wr_tr (void);
|
||||
static void wr_un (struct coff_ofile *, struct coff_sfile *, int, int);
|
||||
static void wr_hd (struct coff_ofile *);
|
||||
static void wr_sh (struct coff_ofile *, struct coff_section *);
|
||||
static void wr_ob (struct coff_ofile *, struct coff_section *);
|
||||
static void wr_rl (struct coff_ofile *, struct coff_section *);
|
||||
static void wr_object_body (struct coff_ofile *);
|
||||
static void wr_dps_start
|
||||
(struct coff_sfile *, struct coff_section *, struct coff_scope *, int, int);
|
||||
static void wr_dps_end (struct coff_section *, struct coff_scope *, int);
|
||||
static int *nints (int);
|
||||
static void walk_tree_type_1
|
||||
(struct coff_sfile *, struct coff_symbol *, struct coff_type *, int);
|
||||
static void walk_tree_type
|
||||
(struct coff_sfile *, struct coff_symbol *, struct coff_type *, int);
|
||||
static void walk_tree_symbol
|
||||
(struct coff_sfile *, struct coff_section *, struct coff_symbol *, int);
|
||||
static void walk_tree_scope
|
||||
(struct coff_section *, struct coff_sfile *, struct coff_scope *, int, int);
|
||||
static void walk_tree_sfile (struct coff_section *, struct coff_sfile *);
|
||||
static void wr_program_structure (struct coff_ofile *, struct coff_sfile *);
|
||||
static void wr_du (struct coff_ofile *, struct coff_sfile *, int);
|
||||
static void wr_dus (struct coff_ofile *, struct coff_sfile *);
|
||||
static int find_base (struct coff_sfile *, struct coff_section *);
|
||||
static void wr_dln (struct coff_ofile *, struct coff_sfile *, int);
|
||||
static void wr_globals (struct coff_ofile *, struct coff_sfile *, int);
|
||||
static void wr_debug (struct coff_ofile *);
|
||||
static void wr_cs (void);
|
||||
static int wr_sc (struct coff_ofile *, struct coff_sfile *);
|
||||
static void wr_er (struct coff_ofile *, struct coff_sfile *, int);
|
||||
static void wr_ed (struct coff_ofile *, struct coff_sfile *, int);
|
||||
static void wr_unit_info (struct coff_ofile *);
|
||||
static void wr_module (struct coff_ofile *);
|
||||
static int align (int);
|
||||
static void prescan (struct coff_ofile *);
|
||||
static void show_usage (FILE *, int);
|
||||
extern int main (int, char **);
|
||||
|
||||
static FILE *file;
|
||||
static bfd *abfd;
|
||||
@@ -1732,7 +1692,7 @@ prescan (struct coff_ofile *otree)
|
||||
|
||||
char *program_name;
|
||||
|
||||
static void
|
||||
ATTRIBUTE_NORETURN static void
|
||||
show_usage (FILE *ffile, int status)
|
||||
{
|
||||
fprintf (ffile, _("Usage: %s [option(s)] in-file [out-file]\n"), program_name);
|
||||
|
||||
Reference in New Issue
Block a user