Commit dcc59638 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

adt: Use a flexible array member instead of bogus [1].

parent 52f2a1d6
......@@ -52,7 +52,7 @@ struct pdeq {
pdeq *l, *r; /**< left and right neighbor */
size_t n; /**< number of elements in the current chunk */
size_t p; /**< the read/write pointer */
const void *data[1]; /**< storage for elements */
const void *data[]; /**< storage for elements */
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment