Skip to content

GH-131296: fix clang-cl warning on Windows in _wmimodule.cpp #131587

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
merged 1 commit into from
Mar 24, 2025

Conversation

chris-eibl
Copy link
Member

@chris-eibl chris-eibl commented Mar 22, 2025

@chris-eibl chris-eibl requested a review from a team as a code owner March 22, 2025 19:40
@chris-eibl chris-eibl changed the title GH-131296:: fix clang-cl warning on Windows in -wmimodule.cpp GH-131296:: fix clang-cl warning on Windows in _wmimodule.cpp Mar 22, 2025
@@ -240,7 +240,6 @@ _wmi_exec_query_impl(PyObject *module, PyObject *query)

/*[clinic end generated code]*/
{
PyObject *result = NULL;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix warning : unused variable 'result' [-Wunused-variable]

@chris-eibl chris-eibl changed the title GH-131296:: fix clang-cl warning on Windows in _wmimodule.cpp GH-131296: fix clang-cl warning on Windows in _wmimodule.cpp Mar 22, 2025
@zooba zooba merged commit a04c0a9 into python:main Mar 24, 2025
45 checks passed
@zooba
Copy link
Member

zooba commented Mar 24, 2025

@chris-eibl Just FYI, I'm rewriting a lot of your PR titles when we commit. It's not a problem - part of what we do as core devs - but you probably haven't noticed, so figured I'd mention it in case you wanted to check them.

It's unfortunate that they follow the PR title by default, because your PR titles are fine. But commit messages are more likely to be read without context (in this case, without timeliness - they'll be read in the future when there isn't a flurry of clang-cl warnings being dealt with), so we tend to go a bit more neutral with them.

@chris-eibl
Copy link
Member Author

Yeah - sure. I am reading for quite some time here, so I am familiar with having modified commit messages when merging upstream - for exactly that reason. Big +1 from me :)

@chris-eibl chris-eibl deleted the fix_clangcl_wmimodule branch March 24, 2025 17:12
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 1, 2025
seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants