diff --git a/src/modules/data/HashFunction.cpp b/src/modules/data/HashFunction.cpp index 87a05f8..152a9b6 100644 --- a/src/modules/data/HashFunction.cpp +++ b/src/modules/data/HashFunction.cpp @@ -608,6 +608,7 @@ HashFunction *HashFunction::getHashFunction(Function function) return nullptr; // No default for compiler warnings } + return NULL; } bool HashFunction::getConstant(const char *in, Function &out) diff --git a/src/modules/graphics/vertex.cpp b/src/modules/graphics/vertex.cpp index df62aae..b6be658 100644 --- a/src/modules/graphics/vertex.cpp +++ b/src/modules/graphics/vertex.cpp @@ -64,6 +64,7 @@ size_t getFormatStride(CommonFormat format) case CommonFormat::XYf_STPf_RGBAub: return sizeof(XYf_STPf_RGBAub); } + return 0; } uint32 getFormatFlags(CommonFormat format) @@ -88,6 +89,7 @@ uint32 getFormatFlags(CommonFormat format) case CommonFormat::XYf_STPf_RGBAub: return ATTRIBFLAG_POS | ATTRIBFLAG_TEXCOORD | ATTRIBFLAG_COLOR; } + return 0; } int getFormatPositionComponents(CommonFormat format) @@ -109,6 +111,7 @@ int getFormatPositionComponents(CommonFormat format) case CommonFormat::XYZf: return 3; } + return 0; } size_t getIndexDataSize(IndexDataType type) @@ -157,6 +160,7 @@ int getIndexCount(TriangleIndexMode mode, int vertexCount) case TriangleIndexMode::QUADS: return vertexCount * 6 / 4; } + return 0; } template