aboutsummaryrefslogtreecommitdiffstats
path: root/src/echo.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2017-06-10 10:02:31 -0700
committerJim Meyering <meyering@fb.com>2017-06-10 19:40:49 -0700
commit28042c4ff56ce1c22d620d3a3b0d6f52d98dd0e9 (patch)
tree3342315f07a0affff3103d88ab337367279c766e /src/echo.c
parenttail: with --pid, ensure all inotify events are processed (diff)
downloadcoreutils-28042c4ff56ce1c22d620d3a3b0d6f52d98dd0e9.tar.gz
coreutils-28042c4ff56ce1c22d620d3a3b0d6f52d98dd0e9.zip
maint: update to work with GCC7's -Werror=implicit-fallthrough=5
* src/system.h (FALLTHROUGH): Define. * src/cp.c (main): Use new FALLTHROUGH macro in place of comments. * src/basename.c (main): Likewise. * src/dircolors.c (append_quoted): Likewise. * src/echo.c (main): Likewise. * src/fold.c (main): Likewise. * src/join.c (main): Likewise. * src/kill.c (main): Likewise. * src/ls.c (get_funky_string, gobble_file): Likewise. * src/sort.c (parse_field_count, main): Likewise. * src/stat.c (print_it): Likewise. * src/tail.c (parse_obsolete_option): Likewise. * src/test.c (posixtest): Likewise. * src/wc.c (wc): Likewise. * src/who.c (main): Likewise.
Diffstat (limited to 'src/echo.c')
-rw-r--r--src/echo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/echo.c b/src/echo.c
index 0df0f25b7..852309d23 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -231,7 +231,7 @@ just_echo:
if (! ('0' <= *s && *s <= '7'))
break;
c = *s++;
- /* Fall through. */
+ FALLTHROUGH;
case '1': case '2': case '3':
case '4': case '5': case '6': case '7':
c -= '0';