Skip to content

Cleanup of globally-scoped suppression for -Wunsequenced. #3202

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

Closed
wants to merge 17 commits into from

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Aug 17, 2021

WIP. First step: collecting all warnings.

rwgk added 17 commits August 14, 2021 17:40
… 3.14 or newer).

Also changing all `cmake -t` to `--target`, `-v` to `--verbose`, `check` to `pytest`, for consistency (to make it easier to pin-point all commands of a certain type).

Also removing one `-j 2` for `pytest` in hopes of reducing flakes due to races in test_iostream and in prints from destructors.
…tely. BTW: in the last CI run there was still a test_iostream flake, even without the -j 2 for running the tests (verfied by inspecting the log).
…(for use outside pybind11 include directory).
rwgk added a commit to rwgk/pybind11 that referenced this pull request Aug 17, 2021
…n an experiment under PR pybind#3202 it is obsolete and can simply be removed.
@rwgk
Copy link
Collaborator Author

rwgk commented Aug 17, 2021

A little surprisingly, the -Wunsequenced suppression can simply be removed. That simple change was folded into PR #3201 and passed CI there, too. Closing this PR.

@rwgk rwgk closed this Aug 17, 2021
@rwgk rwgk deleted the pragma_wunsequenced branch August 17, 2021 19:09
rwgk added a commit to rwgk/pybind11 that referenced this pull request Aug 18, 2021
…n an experiment under PR pybind#3202 it is obsolete and can simply be removed.
rwgk added a commit that referenced this pull request Aug 19, 2021
…s across pybind11 header files. (#3201)

* Removing all MSVC C4127 warning suppression pragmas.

* Removing MSVC /WX (WERROR). To get a full list of all warnings.

* Inserting PYBIND11_SILENCE_MSVC_C4127. Changing one runtime if to #if.

* Changing PYBIND11_SILENCE_MSVC_C4127 macro to use absolute namespace (for use outside pybind11 include directory).

* Restoring MSVC /WX (WERROR).

* Removing globally-scoped suppression for clang -Wunsequenced. Based on an experiment under PR #3202 it is obsolete and can simply be removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant