You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Fix warnings found in DEBUG combined build
Fixes: * Irrelevant where conditions * Irrelevant const * A potential infinite loop in treenode * Bad implicit case fallthroughs * Explicit markings for required case fallthroughs * Unused variables * Unused function Also disabled some warnings for now which we should fix later.
This commit is contained in:
@ -257,7 +257,7 @@ Stats::~Stats()
|
||||
|
||||
void Stats::touchedLBID(uint64_t lbid, pthread_t thdid, uint32_t session)
|
||||
{
|
||||
if (lbid < 0 || session == 0) return;
|
||||
if (session == 0) return;
|
||||
|
||||
mutex::scoped_lock lk(traceFileMapMutex);
|
||||
TraceFileMap_t::iterator iter = traceFileMap.find(session);
|
||||
@ -274,7 +274,7 @@ void Stats::touchedLBID(uint64_t lbid, pthread_t thdid, uint32_t session)
|
||||
|
||||
void Stats::markEvent(const uint64_t lbid, const pthread_t thdid, const uint32_t session, const char event)
|
||||
{
|
||||
if (lbid < 0 || session == 0) return;
|
||||
if (session == 0) return;
|
||||
|
||||
mutex::scoped_lock lk(traceFileMapMutex);
|
||||
TraceFileMap_t::iterator iter = traceFileMap.find(session);
|
||||
|
Reference in New Issue
Block a user