tor/src/feature/relay
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
..
dns_structs.h Bump copyright date to 2019 2019-01-16 12:33:22 -05:00
dns.c Use __attribute__((fallthrough)) rather than magic GCC comments. 2020-05-06 16:53:40 -04:00
dns.h Bump copyright date to 2019 2019-01-16 12:33:22 -05:00
ext_orport.c Split all controller events code into a new control_events.c 2019-03-25 12:11:59 -04:00
ext_orport.h Bump copyright date to 2019 2019-01-16 12:33:22 -05:00
onion_queue.c Add an assertion to num_ntors_per_tap(). 2019-04-11 18:44:10 -04:00
onion_queue.h Run "make autostyle." 2019-06-05 09:33:35 -04:00
relay_periodic.c Run "make autostyle." 2019-06-05 09:33:35 -04:00
relay_periodic.h Move "relay" and "router" periodic callbacks out of mainloop.c 2019-05-06 16:35:39 -04:00
relay_sys.c Move "relay" and "router" periodic callbacks out of mainloop.c 2019-05-06 16:35:39 -04:00
relay_sys.h Create a relay subsystem and move the shutdown functions there 2019-05-06 16:25:09 -04:00
router.c Merge branch 'maint-0.4.1' into maint-0.4.2 2020-02-12 12:22:04 +10:00
router.h router: Add some missing #endif comments 2019-02-19 21:54:30 +10: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 test_dir: Test rsa + ed25519 extrainfo creation and parsing 2019-02-19 21:44:41 +10:00
routermode.c Bump copyright date to 2019 2019-01-16 12:33:22 -05:00
routermode.h Bump copyright date to 2019 2019-01-16 12:33:22 -05:00
selftest.c Move "relay" and "router" periodic callbacks out of mainloop.c 2019-05-06 16:35:39 -04:00
selftest.h Run "make autostyle." 2019-06-05 09:33:35 -04:00