Skip to content

GH-131296: clang-cl on Windows: fix unused warning "self" in fileio.c - #131303

Closed
chris-eibl wants to merge 2 commits into
python:mainfrom
chris-eibl:fix_clangcl_fileio
Closed

GH-131296: clang-cl on Windows: fix unused warning "self" in fileio.c#131303
chris-eibl wants to merge 2 commits into
python:mainfrom
chris-eibl:fix_clangcl_fileio

Conversation

@chris-eibl

@chris-eiblchris-eibl commented Mar 15, 2025

Copy link
Copy Markdown
Member

Comment threadModules/_io/fileio.c Outdated
{
fileio *self = PyFileIO_CAST(op);
#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE
fileio* self = PyFileIO_CAST(op);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like the * position accidentally became inconsistent in this file, which could be unfriendly with some editors.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Great spot!

Viusal Studio thinks it does me a favor when copy pasting -> it reformats :(

Now I found that evil setting and disabled it!

@chris-eibl

Copy link
Copy Markdown
MemberAuthor

Done in #131487

@chris-eibl
chris-eibl deleted the fix_clangcl_fileio branch March 20, 2025 15:24
Sign up for freeto 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

@chris-eibl@neonene