tor/src
Nick Mathewson c116728209 Use __attribute__((fallthrough)) rather than magic GCC comments.
GCC added an implicit-fallthrough warning a while back, where it
would complain if you had a nontrivial "case:" block that didn't end
with break, return, or something like that.  Clang recently added
the same thing.

GCC, however, would let you annotate a fall-through as intended by
any of various magic "/* fall through */" comments.  Clang, however,
only seems to like "__attribute__((fallthrough))".  Fortunately, GCC
accepts that too.

A previous commit in this branch defined a FALLTHROUGH macro to do
the right thing if GNUC is defined; here we replace all of our "fall
through" comments with uses of that macro.

This is an automated commit, made with the following perl one-liner:

  #!/usr/bin/perl -i -p
  s#/\* *falls? ?thr.*?\*/#FALLTHROUGH;#i;

(In order to avoid conflicts, I'm applying this script separately to
each maint branch. This is the 0.4.3 version.)
2020-05-06 16:55:25 -04:00
..
app Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
config python: Add __future__ imports for python 3 compatibility 2019-12-12 15:58:51 +10:00
core Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
ext Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
feature Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
lib Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
rust Merge branch 'maint-0.4.0' into maint-0.4.1 2020-02-10 14:17:10 -05:00
test Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:55:25 -04:00
tools Merge branch 'pre_formatter_cleanups_squashed' 2020-01-09 07:32:39 -05:00
trunnel practracker: Add missing .may_include files 2019-12-04 12:15:22 -05:00
win32 bump to 0.4.3.4-rc-dev 2020-04-13 17:02:20 -04:00
arch_goals.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00
include.am Split core/include.am into per-subdirectory include.am files 2020-01-13 09:34:17 -05:00
mainpage.md Document high-level architecture goals 2019-12-10 16:47:38 -06:00