tor/src/feature/relay
Nick Mathewson cc397449fc 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;
2020-05-06 16:51:11 -04:00
..
dns.c Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:51:11 -04:00
dns.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
dns_structs.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
ext_orport.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
ext_orport.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
onion_queue.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
onion_queue.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
router.c Lowercase the BridgeDistribution value from torrc in descriptors. 2020-02-12 12:21:41 +10:00
router.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
routerkeys.c Merge remote-tracking branch 'tor-github/pr/937' into maint-0.3.5 2019-08-12 09:42:15 +10:00
routerkeys.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
routermode.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
routermode.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
selftest.c Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00
selftest.h Bump copyright date to 2019. 2019-01-16 12:32:32 -05:00