tor/src
Nick Mathewson 28ac17f433 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.2 version.)
2020-05-06 16:53:40 -04:00
..
app Merge remote-tracking branch 'tor-github/pr/1718/head' into maint-0.4.2 2020-03-13 16:42:47 -04:00
config Merge branch 'maint-0.4.1' into maint-0.4.2 2019-12-06 16:02:08 -05:00
core Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:53:40 -04:00
ext Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:53:40 -04:00
feature Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:53:40 -04:00
lib Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:53:40 -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:53:40 -04:00
tools Make tor-print-ed-signing-cert output RFC1123 and unix timestamps as well 2019-07-10 11:36:26 +03:00
trunnel Merge remote-tracking branch 'tor-github/pr/1303' into maint-0.4.1 2019-10-22 12:15:06 -04:00
win32 Bump version to 0.4.2.7-dev 2020-03-18 12:16:11 -04:00
include.am Move unit-parsing code to src/lib/confmgt 2019-06-24 15:11:57 -04:00