Skip to content

Conversation

@chris-eibl
Copy link
Member

@chris-eiblchris-eibl commented Mar 23, 2025

LUID_AND_ATTRIBUTESprivs[4];
} tp, previousTp;
intpreviousTpSize=0;
DWORDpreviousTpSize=0;
Copy link
MemberAuthor

@chris-eiblchris-eiblMar 23, 2025

Choose a reason for hiding this comment

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

fix warning : incompatible pointer types passing 'int *' to parameter of type 'PDWORD'
(aka 'unsigned long *') [-Wincompatible-pointer-types] in ..\Modules_winapi.c(648,50):

if (!AdjustTokenPrivileges(token, FALSE, &tp.base, sizeof(previousTp),
&previousTp.base, &previousTpSize)){

@chris-eibl
Copy link
MemberAuthor

@zooba Since this touches _winapi.c, most probably you are a suitable reviewer?

I hope it is not too impolite to directly ask, I am still unsure about the procedure here.

In case I should wait until this is assigned to a core dev - please let me know.

OOI: how do PRs get assigned (if not automatically via code ownership - this is clear to me)?

Do core devs go through awaiting review and pick up according to their liking / bandwith?

Do triagers assign reviews?

@zooba
Copy link
Member

Tagging me for Windows-related stuff is fine, or the triage team will know to do it. Usually CODEOWNERS should cover most PRs, but if not then yeah, either the triagers or code devs will review the queue.

Probably most often someone is already involved in the issue, and so they'll look at the PR. Usually we aren't doing as many PRs for a single issue as you have been here, but since I said to do it that way, you can keep pinging me on them.

@zoobazooba merged commit 9127b46 into python:mainMar 31, 2025
45 checks passed
@chris-eibl
Copy link
MemberAuthor

Yeah, I also had them all as a big change, but honestly, I wouldn't have liked to review it. It was just super big and touched many files with many unrelated warnings.

In hindsight - doing them on a per file basis seems too fine grained, but I could not find a better way, except for some recent PRs, where it felt quite natural to group by warning (e.g. -Wunused) - and because that splattered not all over the whole code base, but just covered a few files.

Anyway, thanks for bearing with me 👍

@chris-eiblchris-eibl deleted the fix_clangcl_winapi branch March 31, 2025 16:42
@chris-eibl
Copy link
MemberAuthor

Tagging me for Windows-related stuff is fine

Almost all of that is Windows-related, mostly in #ifed code parts, sometimes in Windows specific files, sometimes in vcproj files.

Because gcc and clang on Linux have already done their warning job :)

There have been only very few other occurrencies, e.g. when sizeof(long) == 4 in 64bit builds, but this is kind of Windows specific, too.

So I am afraid and still will have to get on your nerves on some more ...

... just don't wanna seem pushing - all of this can sit and wait.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@chris-eibl@zooba@picnixz