Fixed libstreflop warnings

This commit is contained in:
mathusummut
2018-10-04 17:58:42 +02:00
parent 50a9339e09
commit 171415cc11
5 changed files with 17 additions and 17 deletions

View File

@@ -190,11 +190,11 @@ namespace Shared {
return reinterpret_cast<const T*>(this);
}
inline Vec2<T> & operator=(const Vec2<T> &v) {
/*inline Vec2<T> & operator=(const Vec2<T> &v) {
this->x = v.x;
this->y = v.y;
return *this;
}
}*/
inline bool operator ==(const Vec2<T> &v) const {
return x == v.x && y == v.y;
@@ -420,12 +420,12 @@ namespace Shared {
return reinterpret_cast<const T*>(this);
}
inline Vec3<T> & operator=(const Vec3<T> &v) {
/*inline Vec3<T> & operator=(const Vec3<T> &v) {
this->x = v.x;
this->y = v.y;
this->z = v.z;
return *this;
}
}*/
inline bool operator ==(const Vec3<T> &v) const {
return x == v.x && y == v.y && z == v.z;
@@ -697,13 +697,13 @@ namespace Shared {
return reinterpret_cast<const T*>(this);
}
inline Vec4<T> & operator=(const Vec4<T> &v) {
/*inline Vec4<T> & operator=(const Vec4<T> &v) {
this->x = v.x;
this->y = v.y;
this->z = v.z;
this->w = v.w;
return *this;
}
}*/
inline bool operator ==(const Vec4<T> &v) const {
return x == v.x && y == v.y && z == v.z && w == v.w;

View File

@@ -657,9 +657,9 @@ namespace rapidxml
xml_base()
: m_name(0)
, m_value(0)
, m_parent(0)
, m_name_size(0)
, m_value_size(0)
, m_parent(0)
{
}
@@ -809,7 +809,7 @@ namespace rapidxml
//! Constructs an empty attribute with the specified type.
//! Consider using memory_pool of appropriate xml_document if allocating attributes manually.
xml_attribute() : m_next_attribute(0), m_prev_attribute(0)
xml_attribute() : m_prev_attribute(0), m_next_attribute(0)
{
}
@@ -903,11 +903,11 @@ namespace rapidxml
xml_node(node_type type)
: m_type(type)
, m_first_node(0)
, m_last_node(0)
, m_first_attribute(0)
, m_last_attribute(0)
, m_last_node(0)
, m_next_sibling(0)
, m_prev_sibling(0)
, m_next_sibling(0)
{
}

View File

@@ -33,11 +33,11 @@ namespace Shared {
mutexThreadObjectAccessor(new Mutex(CODE_AT_LINE)),
mutexThreadOwnerValid(new Mutex(CODE_AT_LINE)),
mutexExecutingTask(new Mutex(CODE_AT_LINE)),
ptr(NULL),
mutexStarted(new Mutex(CODE_AT_LINE)),
ptr(NULL), genericData(NULL) {
genericData(NULL) {
if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "In [%s::%s Line: %d]\n", __FILE__, __FUNCTION__, __LINE__);
ptr = this;
MutexSafeWrapper safeMutexMasterList(&mutexMasterThreadList);
masterThreadList[ptr]++;

View File

@@ -379,11 +379,11 @@ namespace Shared {
unsigned int millisecsBetweenExecutions,
bool needTaskSignal,
void *userdata, bool wantSetupAndShutdown) : BaseThread(),
simpleTaskInterface(NULL),
overrideShutdownTask(NULL),
mutexSimpleTaskInterfaceValid(new Mutex(CODE_AT_LINE)),
simpleTaskInterface(NULL),
mutexTaskSignaller(new Mutex(CODE_AT_LINE)),
mutexLastExecuteTimestamp(new Mutex(CODE_AT_LINE)) {
mutexLastExecuteTimestamp(new Mutex(CODE_AT_LINE)),
overrideShutdownTask(NULL) {
uniqueID = "SimpleTaskThread";
this->simpleTaskInterface = simpleTaskInterface;
@@ -391,7 +391,6 @@ namespace Shared {
this->executionCount = executionCount;
this->millisecsBetweenExecutions = millisecsBetweenExecutions;
this->needTaskSignal = needTaskSignal;
this->overrideShutdownTask = NULL;
this->userdata = userdata;
this->wantSetupAndShutdown = wantSetupAndShutdown;
//if(this->userdata != NULL) {

View File

@@ -135,7 +135,8 @@ namespace Shared {
// =====================================
Thread::Thread() : thread(NULL),
mutexthreadAccessor(new Mutex(CODE_AT_LINE)),
deleteAfterExecute(false), currentState(thrsNew) {
currentState(thrsNew),
deleteAfterExecute(false) {
addThreadToList();
}