Commit e12b7c2a authored by Gabriel Russo's avatar Gabriel Russo Committed by Facebook Github Bot

Fix warnings

Summary:
Extra `;`, shadowed declarations and unitialised variables
were causing warnings to callers.

Reviewed By: stepancheg

Differential Revision: D19537831

fbshipit-source-id: 259cf9974592191c84d424bbdf3bd1c68425a76c
parent 86322be2
......@@ -124,7 +124,7 @@ struct TurnSequencer {
const uint32_t effectiveSpinCutoff =
updateSpinCutoff || prevThresh == 0 ? kMaxSpinLimit : prevThresh;
uint64_t begin;
uint64_t begin = 0;
uint32_t tries;
const uint32_t sturn = turn << kTurnShift;
for (tries = 0;; ++tries) {
......
......@@ -52,8 +52,8 @@ class Core : public std::enable_shared_from_this<Core> {
struct VersionedData {
VersionedData() {}
VersionedData(std::shared_ptr<const void> data_, size_t version_)
: data(std::move(data_)), version(version_) {}
VersionedData(std::shared_ptr<const void> dat, size_t ver)
: data(std::move(dat)), version(ver) {}
std::shared_ptr<const void> data;
size_t version{0};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment