mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-07 02:27:47 +08:00
Fixed many compilation warnings (c++14, like pedantic warnings)
This commit is contained in:
@@ -472,8 +472,8 @@ private:
|
||||
* @param msg the message to write.
|
||||
* @param arg the variable arguments
|
||||
*/
|
||||
virtual void _write(const char* msg, va_list arg) {} // Do nothing by default
|
||||
virtual void _writeStr(const char* msg) {} // Do nothing by default
|
||||
virtual void _write(const char*, va_list) {} // Do nothing by default
|
||||
virtual void _writeStr(const char*) {} // Do nothing by default
|
||||
|
||||
private:
|
||||
/*
|
||||
|
||||
@@ -125,8 +125,8 @@ public:
|
||||
#else
|
||||
mutable pthread_mutex_t M;
|
||||
#endif
|
||||
void operator=(UMutex &M) {}
|
||||
UMutex( const UMutex &M ) {}
|
||||
void operator=(UMutex &) {}
|
||||
UMutex( const UMutex & ) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -208,12 +208,12 @@ public:
|
||||
#endif
|
||||
|
||||
private:
|
||||
void operator=(const USemaphore &S){}
|
||||
void operator=(const USemaphore &){}
|
||||
#ifdef _WIN32
|
||||
USemaphore(const USemaphore &S){}
|
||||
HANDLE S;
|
||||
#else
|
||||
USemaphore(const USemaphore &S):_available(0){}
|
||||
USemaphore(const USemaphore &):_available(0){}
|
||||
pthread_mutex_t _waitMutex;
|
||||
pthread_cond_t _cond;
|
||||
int _available;
|
||||
|
||||
@@ -253,8 +253,8 @@ private:
|
||||
{ return UThreadC<void>::Detach(H); }
|
||||
|
||||
private:
|
||||
void operator=(UThread & t) {}
|
||||
UThread( const UThread & t ) : state_(kSIdle) {}
|
||||
void operator=(UThread &) {}
|
||||
UThread( const UThread &) : state_(kSIdle) {}
|
||||
|
||||
private:
|
||||
enum State{kSIdle, kSCreating, kSRunning, kSKilled}; /* Enum of states. */
|
||||
|
||||
Reference in New Issue
Block a user