mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix clang warnings
This commit is contained in:
@@ -152,7 +152,6 @@ private:
|
|||||||
|
|
||||||
ThreadHelper m_thread;
|
ThreadHelper m_thread;
|
||||||
EntryPoint* m_entryPoint;
|
EntryPoint* m_entryPoint;
|
||||||
Function <void (void)> m_function;
|
|
||||||
WaitableEvent m_runEvent;
|
WaitableEvent m_runEvent;
|
||||||
id m_threadId;
|
id m_threadId;
|
||||||
|
|
||||||
|
|||||||
@@ -355,8 +355,7 @@ public:
|
|||||||
inline Work (Proxy* proxy,
|
inline Work (Proxy* proxy,
|
||||||
Entry* const entry,
|
Entry* const entry,
|
||||||
const timestamp_t timestamp)
|
const timestamp_t timestamp)
|
||||||
: m_proxy (proxy)
|
: m_entry (entry)
|
||||||
, m_entry (entry)
|
|
||||||
, m_timestamp (timestamp)
|
, m_timestamp (timestamp)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -374,7 +373,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Proxy* const m_proxy;
|
|
||||||
Entry::Ptr m_entry;
|
Entry::Ptr m_entry;
|
||||||
const timestamp_t m_timestamp;
|
const timestamp_t m_timestamp;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -246,7 +246,6 @@ private:
|
|||||||
WaitableEvent m_finishedEvent;
|
WaitableEvent m_finishedEvent;
|
||||||
Atomic <int> m_currentIndex;
|
Atomic <int> m_currentIndex;
|
||||||
Atomic <int> m_numberOfInstances;
|
Atomic <int> m_numberOfInstances;
|
||||||
int m_numberOfIterations;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ public:
|
|||||||
int generateHash (const var& key, const int upperLimit) const noexcept { return generateHash (key.toString(), upperLimit); }
|
int generateHash (const var& key, const int upperLimit) const noexcept { return generateHash (key.toString(), upperLimit); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
/** Hardened hash functions for use with HashMap.
|
/** Hardened hash functions for use with HashMap.
|
||||||
|
|
||||||
The seed is used to make the hash unpredictable. This prevents
|
The seed is used to make the hash unpredictable. This prevents
|
||||||
@@ -74,6 +75,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
int m_seed;
|
int m_seed;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ void UnitTest::finishCase ()
|
|||||||
|
|
||||||
UnitTests::UnitTests()
|
UnitTests::UnitTests()
|
||||||
: m_assertOnFailure (false)
|
: m_assertOnFailure (false)
|
||||||
, m_currentTest (nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -413,7 +413,6 @@ private:
|
|||||||
private:
|
private:
|
||||||
bool m_assertOnFailure;
|
bool m_assertOnFailure;
|
||||||
ScopedPointer <Results> m_results;
|
ScopedPointer <Results> m_results;
|
||||||
UnitTest* m_currentTest;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user