diff --git a/Engine/source/T3D/decal/decalManager.cpp b/Engine/source/T3D/decal/decalManager.cpp index 39e90f159..7adce305d 100644 --- a/Engine/source/T3D/decal/decalManager.cpp +++ b/Engine/source/T3D/decal/decalManager.cpp @@ -87,7 +87,6 @@ const U32 DecalManager::smMaxIndices = 10000; DecalManager *gDecalManager = NULL; IMPLEMENT_CONOBJECT(DecalManager); -DECLARE_CATEGORY("UNLISTED"); ConsoleDoc( "@defgroup Decals\n" diff --git a/Engine/source/console/runtime.h b/Engine/source/console/runtime.h index cb2a32805..25ac604e4 100644 --- a/Engine/source/console/runtime.h +++ b/Engine/source/console/runtime.h @@ -12,7 +12,7 @@ namespace Con String error; public: - EvalResult() {} + EvalResult() { valid = false; error = ""; } EvalResult(ConsoleValue pValue) { diff --git a/Engine/source/core/dataChunker.h b/Engine/source/core/dataChunker.h index cefefa2fe..226878711 100644 --- a/Engine/source/core/dataChunker.h +++ b/Engine/source/core/dataChunker.h @@ -41,7 +41,7 @@ public: struct alignas(uintptr_t) DataBlock : public AlignedBufferAllocator { - DataBlock* mNext; + DataBlock* mNext = NULL; inline DataBlock* getEnd() { diff --git a/Engine/source/core/util/tDictionary.h b/Engine/source/core/util/tDictionary.h index 6c8c7d21f..f725a9bc5 100644 --- a/Engine/source/core/util/tDictionary.h +++ b/Engine/source/core/util/tDictionary.h @@ -179,8 +179,8 @@ class HashTable public: struct Pair { - Key key; - Value value; + Key key{}; + Value value{}; Pair() {} Pair(Key k,Value v) : key(k), diff --git a/Engine/source/core/util/tVector.h b/Engine/source/core/util/tVector.h index 0700a5554..c7c4fc7a4 100644 --- a/Engine/source/core/util/tVector.h +++ b/Engine/source/core/util/tVector.h @@ -407,7 +407,7 @@ template inline void Vector::insert(U32 index) dMemmove(&mArray[index + 1], &mArray[index], - (mElementCount - index - 1) * sizeof(value_type)); + dsize_t(mElementCount - index - 1) * sizeof(value_type)); constructInPlace(&mArray[index]); } @@ -428,7 +428,7 @@ template inline void Vector::erase(U32 index) { dMemmove(&mArray[index], &mArray[index + 1], - (mElementCount - index - 1) * sizeof(value_type)); + dsize_t(mElementCount - index - 1) * sizeof(value_type)); } mElementCount--; @@ -461,7 +461,7 @@ template inline void Vector::erase(U32 index, U32 count) dMemmove( &mArray[index], &mArray[index + count], - (mElementCount - index - count) * sizeof(value_type)); + dsize_t(mElementCount - index - count) * sizeof(value_type)); mElementCount -= count; } diff --git a/Engine/source/gfx/bitmap/loaders/ies/ies_loader.cpp b/Engine/source/gfx/bitmap/loaders/ies/ies_loader.cpp index 3df8c32bd..a5ac881ad 100644 --- a/Engine/source/gfx/bitmap/loaders/ies/ies_loader.cpp +++ b/Engine/source/gfx/bitmap/loaders/ies/ies_loader.cpp @@ -200,7 +200,7 @@ IESLoadHelper::load(const std::string& data, IESFileInfo& info) info._anglesH.push_back(value); } - info._candalaValues.reserve(info.anglesNumH * info.anglesNumV); + info._candalaValues.reserve(size_t(info.anglesNumH * info.anglesNumV)); for (std::int32_t y = 0; y < info.anglesNumH; ++y) { diff --git a/Engine/source/renderInstance/renderPassManager.h b/Engine/source/renderInstance/renderPassManager.h index 8231370c8..2d4810ece 100644 --- a/Engine/source/renderInstance/renderPassManager.h +++ b/Engine/source/renderInstance/renderPassManager.h @@ -299,6 +299,7 @@ struct RenderInst /// Does a memset to clear the render instance. void clear(); + RenderInst() { clear(); } }; struct ObjectRenderInst : public RenderInst @@ -327,6 +328,7 @@ struct ObjectRenderInst : public RenderInst // Clear this instance. void clear(); + ObjectRenderInst() { clear(); } }; struct MeshRenderInst : public RenderInst @@ -397,6 +399,7 @@ struct MeshRenderInst : public RenderInst Vector mCustomShaderData; void clear(); + MeshRenderInst() { clear(); }; }; enum ParticleSystemState @@ -455,6 +458,7 @@ struct ParticleRenderInst : public RenderInst GFXTextureObject *diffuseTex; void clear(); + ParticleRenderInst() { clear(); } }; class GFXOcclusionQuery; @@ -477,6 +481,7 @@ struct OccluderRenderInst : public RenderInst bool isSphere; void clear(); + OccluderRenderInst() { clear(); } }; #endif // _RENDERPASSMANAGER_H_