Skip to content

GH-131296: fix clang-cl warnings in fileutils.c - #131301

Closed
chris-eibl wants to merge 1 commit into
python:mainfrom
chris-eibl:fix_clangcl_fileutils
Closed

GH-131296: fix clang-cl warnings in fileutils.c#131301
chris-eibl wants to merge 1 commit into
python:mainfrom
chris-eibl:fix_clangcl_fileutils

Conversation

@chris-eibl

@chris-eiblchris-eibl commented Mar 15, 2025

Copy link
Copy Markdown
Member

Comment threadPython/fileutils.c
return 0;
}
if (ch > MAX_UNICODE) {
if (sizeof(ch) > 2 && ch > MAX_UNICODE) {

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.

Fix warning : result of comparison of constant 1114111 with expression of type 'wchar_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]

Comment threadPython/fileutils.c

// mbstowcs() and mbrtowc() errors
static const size_t DECODE_ERROR = ((size_t)-1);
#ifdef HAVE_MBRTOWC

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.

fix warning : unused variable 'INCOMPLETE_CHARACTER' [-Wunused-const-variable]

@chris-eibl

Copy link
Copy Markdown
MemberAuthor

Closed because done similarily in #131487.

@chris-eibl
chris-eibl deleted the fix_clangcl_fileutils branch March 20, 2025 15:29
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.

1 participant

@chris-eibl