freebsd-ports/benchmarks/polygraph/files/patch-src_runtime_StatPhase.cc
John Marino 558580ea92 benchmarks/polygraph: Fix c++ errors caught by modern compilers
There were two scope issues caught by -fpermissions and another case
of a redeclared variabled, all of which are caught on recent gcc.

Approved by:	portmgr (bapt, implicit)
2013-10-01 22:16:39 +00:00

21 lines
701 B
C++

--- src/runtime/StatPhase.cc.orig 2011-04-04 22:07:36.000000000 +0000
+++ src/runtime/StatPhase.cc
@@ -413,12 +413,12 @@ void StatPhase::noteXactEvent(BcastChann
break;
}
} else {
- static CompoundXactInfo &compound = *CompoundXactInfo::Create();
- compound.exchanges = 1;
- compound.reqSize = reqSize;
- compound.repSize = repSize;
- compound.lifeTime = repTime;
- compound.record(rec.theIsolated);
+ static CompoundXactInfo &compound2 = *CompoundXactInfo::Create();
+ compound2.exchanges = 1;
+ compound2.reqSize = reqSize;
+ compound2.repSize = repSize;
+ compound2.lifeTime = repTime;
+ compound2.record(rec.theIsolated);
}
if (x->cookiesSent() > 0)