-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug34078 035 #1882
Open
nmathewson
wants to merge
7
commits into
torproject:maint-0.3.5
Choose a base branch
from
nmathewson:bug34078_035
base: maint-0.3.5
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Bug34078 035 #1882
Commits on May 6, 2020
-
This macro defers to __attribute__((fallthrough)) on GCC (and clang). Previously we had been using GCC's magic /* fallthrough */ comments, but clang very sensibly doesn't accept those. Since not all compiler recognize it, we only define it when our configure script detects that it works. Part of a fix for 34078.
Configuration menu - View commit details
-
Copy full SHA for 6c3c943 - Browse repository at this point
Copy the full SHA 6c3c943View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75547c0 - Browse repository at this point
Copy the full SHA 75547c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fe23b8 - Browse repository at this point
Copy the full SHA 9fe23b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37b8324 - Browse repository at this point
Copy the full SHA 37b8324View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8798c0a - Browse repository at this point
Copy the full SHA 8798c0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d36411 - Browse repository at this point
Copy the full SHA 3d36411View commit details -
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;
Configuration menu - View commit details
-
Copy full SHA for 757a35c - Browse repository at this point
Copy the full SHA 757a35cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.