]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/timer.c
tree-wide: adjust fall through comments so that gcc is happy
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 27 Jan 2017 05:50:10 +0000 (00:50 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 31 Jan 2017 19:04:55 +0000 (14:04 -0500)
commitec251fe7d5bc24b5d38b0853bc5969f3a0ba06e2
treec37bae4fdc7a54ebbe6abcb394a6019efc619c61
parent9ce6d1b319f8655100af6ecf5fd57e4558d57dd1
tree-wide: adjust fall through comments so that gcc is happy

gcc 7 adds -Wimplicit-fallthrough=3 to -Wextra. There are a few ways
we could deal with that. After we take into account the need to stay compatible
with older versions of the compiler (and other compilers), I don't think adding
__attribute__((fallthrough)), even as a macro, is worth the trouble. It sticks
out too much, a comment is just as good. But gcc has some very specific
requiremnts how the comment should look. Adjust it the specific form that it
likes. I don't think the extra stuff we had in those comments was adding much
value.

(Note: the documentation seems to be wrong, and seems to describe a different
pattern from the one that is actually used. I guess either the docs or the code
will have to change before gcc 7 is finalized.)
src/basic/siphash24.c
src/basic/time-util.c
src/core/socket.c
src/core/timer.c
src/journal/journal-file.c
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd/sd-device/sd-device.c
src/nspawn/nspawn.c