From bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 12 Oct 2001 20:52:48 +0000 Subject: Use double curly braces for the generation0/1/2 initializers, to shut up GCC warnings. --- Modules/gcmodule.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index db35b3d..ed846cc 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 */ -- cgit v0.12