Fix clang warnings

This commit is contained in:
Vinnie Falco
2013-08-01 18:49:57 -07:00
parent 5c7aad161a
commit 165fbca849
6 changed files with 3 additions and 7 deletions

View File

@@ -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;

View File

@@ -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;
}; };

View File

@@ -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

View File

@@ -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
//============================================================================== //==============================================================================
/** /**

View File

@@ -207,7 +207,6 @@ void UnitTest::finishCase ()
UnitTests::UnitTests() UnitTests::UnitTests()
: m_assertOnFailure (false) : m_assertOnFailure (false)
, m_currentTest (nullptr)
{ {
} }

View File

@@ -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