summaryrefslogtreecommitdiff
path: root/src/compare.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-11-18 08:39:33 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-11-18 08:42:23 -0800
commitd44d592013bd34b08246b14cefb7187166a3396a (patch)
treea7bfeb70344645bedc6c0128013981603b06d170 /src/compare.c
parent0c8e7bad3e3c81602c88afb9f0faed70829ae09c (diff)
downloadtar-d44d592013bd34b08246b14cefb7187166a3396a.tar.gz
Port to gcc -Wimplicit-fallthrough=5
* src/common.h (FALLTHROUGH): New macro, for use with gcc -Wimplicit-fallthrough=5, which is now the default when used with Gnulib after commit 2017-05-16T16:23:52!eggert@cs.ucla.edu and with --enable-gcc-warnings
Diffstat (limited to 'src/compare.c')
-rw-r--r--src/compare.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compare.c b/src/compare.c
index 8d609e89..fee13729 100644
--- a/src/compare.c
+++ b/src/compare.c
@@ -480,8 +480,7 @@ diff_archive (void)
ERROR ((0, 0, _("%s: Unknown file type '%c', diffed as normal file"),
quotearg_colon (current_stat_info.file_name),
current_header->header.typeflag));
- /* Fall through. */
-
+ FALLTHROUGH;
case AREGTYPE:
case REGTYPE:
case GNUTYPE_SPARSE: