Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implement Py_UNUSED() for Windows MSVC compiler #107249

Closed
Labels
type-featureA feature request or enhancement
@vstinner

Description

@vstinner

ThePy_UNUSED() is not implemented for the Windows MSVC compiler.

Example with this function included by Python.h: see#107239 (comment)

static inline unsigned intPyUnicode_IS_READY(PyObject* Py_UNUSED(op)){ return 1; }

Without my change, building a C program withcl /W4 which just includes Python.h emits the warning:

Include\cpython/unicodeobject.h(199): warning C4100: '_unused_op': unreferenced formal parameter

With my change, no warnings are emitted!

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp