-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Removing GCC -Wunused-but-set-parameter from pragma block at the top of pybind11.h #3164
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
Merged
rwgk
merged 17 commits into
pybind:master
from
rwgk:pragma_block_rm_unused_but_set_param
Aug 6, 2021
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6587ce7
Cleanup triggered by work on pragma for GCC -Wunused-but-set-parameter.
rwgk a68105d
Backing out changes to eigen.h (to be worked on later).
rwgk 3fe8527
Adding PYBIND11_WORKAROUND_INCORRECT_GCC_UNUSED_BUT_SET_PARAMETER in …
rwgk 2903e2a
Apparently older compilers need a simpler overload for silence_unused…
rwgk ee88918
clang C++11 compatibility: removing constexpr
rwgk a3ba06b
Special case for MSVC 2017: `constexpr void` return
rwgk c4e0ed3
Trying again without the silence_unused_warnings(const int *) overload.
rwgk fab0396
Separate macros for ALL_GCC, OLD_GCC_UNUSED_BUT_SET_PARAMETER
rwgk 15cbc94
Changing to __GNUC__ <= 2 (turning off)
rwgk 9f97471
Refined condition for PYBIND11_WORKAROUND_INCORRECT_OLD_GCC_UNUSED_BU…
rwgk e70518d
Quick experiment trying out suggestion by @henryiii
rwgk 1dfd35f
Introducing macro: PYBIND11_INT_ARRAY_WORKING_AROUND_MSVC_CLANG_ISSUES
rwgk 3d2cb7c
Trying henryiii@ (void) expander idea.
rwgk 218732d
fix: apply simpler expression with fewer workarounds
henryiii 8a55d0d
Purging new-but-already-obsoleted macro, made possible by @henryiii'…
rwgk 5ed4396
Renaming `ALL_GCC` macro back to just `GCC` (because there is no `OLD…
rwgk 9caa3a2
[actions skip] Adding "All GCC versions" to comment, to be clear abou…
rwgk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.