-
- Downloads
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;
Showing
- src/app/config/confparse.c 4 additions, 4 deletionssrc/app/config/confparse.c
- src/core/or/channeltls.c 1 addition, 1 deletionsrc/core/or/channeltls.c
- src/core/or/circuitbuild.c 1 addition, 1 deletionsrc/core/or/circuitbuild.c
- src/core/or/circuitlist.c 2 additions, 2 deletionssrc/core/or/circuitlist.c
- src/core/or/circuituse.c 1 addition, 1 deletionsrc/core/or/circuituse.c
- src/core/or/connection_edge.c 1 addition, 1 deletionsrc/core/or/connection_edge.c
- src/core/or/onion.c 1 addition, 1 deletionsrc/core/or/onion.c
- src/core/or/reasons.c 1 addition, 1 deletionsrc/core/or/reasons.c
- src/core/or/relay.c 1 addition, 1 deletionsrc/core/or/relay.c
- src/core/or/scheduler.c 2 additions, 2 deletionssrc/core/or/scheduler.c
- src/core/proto/proto_socks.c 2 additions, 2 deletionssrc/core/proto/proto_socks.c
- src/ext/csiphash.c 7 additions, 7 deletionssrc/ext/csiphash.c
- src/ext/ed25519/donna/modm-donna-32bit.h 24 additions, 24 deletionssrc/ext/ed25519/donna/modm-donna-32bit.h
- src/ext/ed25519/donna/modm-donna-64bit.h 12 additions, 12 deletionssrc/ext/ed25519/donna/modm-donna-64bit.h
- src/feature/client/entrynodes.c 1 addition, 1 deletionsrc/feature/client/entrynodes.c
- src/feature/control/control.c 1 addition, 1 deletionsrc/feature/control/control.c
- src/feature/dirclient/dirclient.c 1 addition, 1 deletionsrc/feature/dirclient/dirclient.c
- src/feature/dirparse/parsecommon.c 1 addition, 1 deletionsrc/feature/dirparse/parsecommon.c
- src/feature/relay/dns.c 1 addition, 1 deletionsrc/feature/relay/dns.c
- src/feature/rend/rendclient.c 1 addition, 1 deletionsrc/feature/rend/rendclient.c
Loading
Please register or sign in to comment