Skip to content
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

gh-121040: Use __attribute__((fallthrough)) #121044

Merged
merged 6 commits into from
Jun 27, 2024
Merged

Commits on Jun 26, 2024

  1. pythongh-121040: Use __attribute__((fallthrough))

    Annotate explicitly "fall through" switch cases with a new
    _Py_FALLTHROUGH macro which uses __attribute__((fallthrough)) if
    available.
    
    Fix warnings when using -Wimplicit-fallthrough compiler flag.
    vstinner committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    bb2eb56 View commit details
    Browse the repository at this point in the history
  2. Run make regen-cases

    vstinner committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    f892e8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32f3cf9 View commit details
    Browse the repository at this point in the history
  4. Add _Py__has_attribute() macro

    No longer define __has_attribute() if it's not defined.
    
    Move also _Py__has_builtin() at the top of pyport.h.
    vstinner committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    3bfdbf6 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Fix typo in the doc

    vstinner committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    bfea265 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cdc2102 View commit details
    Browse the repository at this point in the history