From: Guido van Rossum Date: Fri, 12 Oct 2001 20:52:48 +0000 (+0000) Subject: Use double curly braces for the generation0/1/2 initializers, to shut X-Git-Tag: v2.2.1c1~1321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998;p=python Use double curly braces for the generation0/1/2 initializers, to shut up GCC warnings. --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index db35b3deae..ed846cc78a 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -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 */