Fixed many compilation warnings (c++14, like pedantic warnings)

This commit is contained in:
matlabbe
2020-01-30 17:23:02 -05:00
parent ccc5a5be5a
commit f7540196d4
10 changed files with 21 additions and 16 deletions
+2 -2
View File
@@ -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:
/*
+2 -2
View File
@@ -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 & ) {}
};
/**
+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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. */