diff options
author | Guido van Rossum <guido@python.org> | 2001-10-12 20:52:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-12 20:52:48 (GMT) |
commit | bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998 (patch) | |
tree | c06687a6bed678912e6b0261ac5b2d64922cfc69 /Modules/gcmodule.c | |
parent | 79fd0fcae4ecddca7ae441a4ffec4fe54ef760bc (diff) | |
download | cpython-bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998.zip cpython-bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998.tar.gz cpython-bca8c2ebea40b9bd90e07b8c48faf11d6aaa4998.tar.bz2 |
Use double curly braces for the generation0/1/2 initializers, to shut
up GCC warnings.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r-- | Modules/gcmodule.c | 6 |
1 files 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 */ |