diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h index 22df26bd37a5c5..698459e6d8566d 100644 --- a/Include/cpython/pystate.h +++ b/Include/cpython/pystate.h @@ -58,7 +58,7 @@ typedef struct _stack_chunk { struct _stack_chunk *previous; size_t size; size_t top; - PyObject * data[1]; /* Variable sized */ + PyObject * data[]; } _PyStackChunk; /* Minimum size of data stack chunk */ diff --git a/Modules/_sre/sre.h b/Modules/_sre/sre.h index 42681c2addf3c2..7702a0af032517 100644 --- a/Modules/_sre/sre.h +++ b/Modules/_sre/sre.h @@ -65,7 +65,7 @@ typedef struct { struct { Py_ssize_t index; PyObject *literal; /* NULL if empty */ - } items[0]; + } items[]; } TemplateObject; typedef struct SRE_REPEAT_T { diff --git a/Objects/memoryobject.c b/Objects/memoryobject.c index f3b7e4a396b4a1..798b7f810b09b7 100644 --- a/Objects/memoryobject.c +++ b/Objects/memoryobject.c @@ -1042,7 +1042,7 @@ memoryview__from_flags_impl(PyTypeObject *type, PyObject *object, int flags) typedef struct { Py_buffer view; - Py_ssize_t array[1]; + Py_ssize_t array[]; } Py_buffer_full; int