diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-11-18 08:39:33 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-11-18 08:42:23 -0800 |
commit | d44d592013bd34b08246b14cefb7187166a3396a (patch) | |
tree | a7bfeb70344645bedc6c0128013981603b06d170 /src/compare.c | |
parent | 0c8e7bad3e3c81602c88afb9f0faed70829ae09c (diff) | |
download | tar-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.c | 3 |
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: |