aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-10-05 16:44:07 +1030
committerAlan Modra <amodra@gmail.com>2016-10-06 09:40:30 +1030
commit1e0f0b4d0191263e35d81a3670d56bf639be274a (patch)
tree28044a8a1465af050024a631369d532e8a8f162f /binutils/objcopy.c
parent2b804145796e948fa4c025c07eb201e700281e6b (diff)
downloadgdb-1e0f0b4d0191263e35d81a3670d56bf639be274a.zip
gdb-1e0f0b4d0191263e35d81a3670d56bf639be274a.tar.gz
gdb-1e0f0b4d0191263e35d81a3670d56bf639be274a.tar.bz2
-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.
Diffstat (limited to 'binutils/objcopy.c')
-rw-r--r--binutils/objcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/objcopy.c b/binutils/objcopy.c
index 2e8ff27..9a64ec3 100644
--- a/binutils/objcopy.c
+++ b/binutils/objcopy.c
@@ -512,7 +512,7 @@ static bfd_boolean write_debugging_info (bfd *, void *, long *, asymbol ***);
static const char *lookup_sym_redefinition (const char *);
static const char *find_section_rename (const char *, flagword *);
-static void
+ATTRIBUTE_NORETURN static void
copy_usage (FILE *stream, int exit_status)
{
fprintf (stream, _("Usage: %s [option(s)] in-file [out-file]\n"), program_name);
@@ -646,7 +646,7 @@ copy_usage (FILE *stream, int exit_status)
exit (exit_status);
}
-static void
+ATTRIBUTE_NORETURN static void
strip_usage (FILE *stream, int exit_status)
{
fprintf (stream, _("Usage: %s <option(s)> in-file(s)\n"), program_name);