Skip to content

listobject.h:33:36: error: void value not ignored as it ought to be #94507

Closed as not planned
@AlexLuya

Description

@AlexLuya

Bug report
When running a "python3 setup install",I got an error:

/usr/include/python3.10/cpython/listobject.h:33:36: error: void value not ignored as it ought to be
   33 | #define PyList_SET_ITEM(op, i, v) ((void)(_PyList_CAST(op)->ob_item[i] = (v)))
      |                                   ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cursor.c:1088:13: note: in expansion of macro ‘PyList_SET_ITEM’

Your environment

  • CPython versions tested on: 0.29.28
  • Operating system and architecture: ubuntu 22.04 x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions