Commit bca8c2eb authored by Guido van Rossum's avatar Guido van Rossum

Use double curly braces for the generation0/1/2 initializers, to shut

up GCC warnings.
parent 79fd0fca
......@@ -32,9 +32,9 @@
/*** Global GC state ***/
/* linked lists of container objects */
PyGC_Head _PyGC_generation0 = {&_PyGC_generation0, &_PyGC_generation0, 0};
static PyGC_Head generation1 = {&generation1, &generation1, 0};
static PyGC_Head generation2 = {&generation2, &generation2, 0};
PyGC_Head _PyGC_generation0 = {{&_PyGC_generation0, &_PyGC_generation0, 0}};
static PyGC_Head generation1 = {{&generation1, &generation1, 0}};
static PyGC_Head generation2 = {{&generation2, &generation2, 0}};
static int generation = 0; /* current generation being collected */
/* collection frequencies, XXX tune these */
......
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