1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 22:40:51 -08:00

Avoid "iso c90 forbids mixed declarations and code" error from gcc.

Copied from Perforce
 Change: 188257
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2015-09-04 22:28:40 +01:00
parent aa6a027c68
commit 3ef063c80f

View file

@ -160,6 +160,8 @@ static double policyCollectionTime(Arena arena)
Bool PolicyShouldCollectWorld(Arena arena, double availableTime,
Clock now, Clock clocks_per_sec)
{
Size collectableSize;
AVERT(Arena, arena);
/* Can't collect the world if we're not given any time. */
AVER(availableTime > 0.0);
@ -167,7 +169,7 @@ Bool PolicyShouldCollectWorld(Arena arena, double availableTime,
AVER(arena->busyTraces == TraceSetEMPTY);
/* Don't collect the world if it's very small. */
Size collectableSize = ArenaCollectable(arena);
collectableSize = ArenaCollectable(arena);
if (collectableSize > ARENA_MINIMUM_COLLECTABLE_SIZE) {
/* How long would it take to collect the world? */
double collectionTime = policyCollectionTime(arena);