]> git.llucax.com Git - software/dgc/cdgc.git/commitdiff
Avoid double initialization of stack variable
authorLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:29:37 +0000 (02:29 -0300)
committerLeandro Lucarella <llucax@gmail.com>
Sun, 29 Aug 2010 05:29:37 +0000 (02:29 -0300)
rt/gc/cdgc/gc.d

index f74409f3e5aaa7deca92196619db0af46616d428..3122215731cf726809ed8ac9abef0ad0ed5ba5f0 100644 (file)
@@ -641,7 +641,7 @@ void mark_range(void *pbot, void *ptop, size_t* pm_bitmask)
             if (pool)
             {
                 size_t offset = cast(size_t)(p - pool.baseAddr);
-                size_t bit_i;
+                size_t bit_i = void;
                 size_t pn = offset / PAGESIZE;
                 Bins   bin = cast(Bins)pool.pagetable[pn];