util-linux/term-utils
Sami Kerola b1557fe981 misc: fix ggc-7 fallthrough warnings
(Original patch and commit message edited by Rudi.)

gcc-7 adds -Wimplicit-fallthrough=3 to our default flag -Wextra.
This warning can be silenced by using comment /* fallthrough */
which is also recognized by other tools like coverity. There are
also other valid comments (see man gcc-7) but we consolidate this
style now.

We could have also used __attribute__((fallthrough)) but the comment
looks nice and does not need to be ifdef'ed for compatibility.

Reference: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=7652
Reference: https://developers.redhat.com/blog/2017/03/10/wimplicit-fallthrough-in-gcc-7/
Reviewed-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Suggested-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-06-14 11:48:22 +02:00
..
Makemodule.am build-sys: use -lm for scriptreplay if necessary 2017-01-18 13:17:21 +01:00
agetty.8 agetty: various man-page fixes 2017-04-10 15:46:26 +02:00
agetty.c misc: fix ggc-7 fallthrough warnings 2017-06-14 11:48:22 +02:00
mesg.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
mesg.c misc: do not use plain 0 as NULL [smatch scan] 2017-02-20 12:58:49 +01:00
reset reset: deprecate the script, and remove reset.033c 2015-06-29 12:06:22 +02:00
reset.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
script.1 script: always write stat and done message to typescript file 2017-04-18 12:12:44 +02:00
script.c script: always write stat and done message to typescript file 2017-04-18 12:12:44 +02:00
scriptreplay.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
scriptreplay.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
setterm.1 setterm: add --resize option 2016-12-29 10:56:15 +00:00
setterm.c build-sys: ncurses headers cleanup 2017-05-31 11:01:46 +02:00
ttymsg.c misc: safer (and uniform) handling of return value 2016-03-07 15:11:06 +01:00
ttymsg.h ttymsg: fix compiler warnings and use EXIT_ 2011-04-12 11:19:15 +02:00
wall.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
wall.c wall: make sure with not referencing a null pointer 2017-05-29 13:25:36 +02:00
write.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
write.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00