diff --git a/intern/ghost/intern/GHOST_ContextVK.cc b/intern/ghost/intern/GHOST_ContextVK.cc index 6cddd5ead49..35e9bf3b6c3 100644 --- a/intern/ghost/intern/GHOST_ContextVK.cc +++ b/intern/ghost/intern/GHOST_ContextVK.cc @@ -303,7 +303,6 @@ class GHOST_DeviceVK { } fprintf(stderr, "Couldn't find any Graphic queue family on selected device\n"); - return; } }; diff --git a/source/blender/blenfont/intern/blf_glyph.cc b/source/blender/blenfont/intern/blf_glyph.cc index 0ab3496b03c..92fcc52752d 100644 --- a/source/blender/blenfont/intern/blf_glyph.cc +++ b/source/blender/blenfont/intern/blf_glyph.cc @@ -347,7 +347,7 @@ static GlyphBLF *blf_glyph_cache_add_glyph(FontBLF *font, } } else { - memcpy(g->bitmap, glyph->bitmap.buffer, (size_t)buffer_size); + memcpy(g->bitmap, glyph->bitmap.buffer, size_t(buffer_size)); } } diff --git a/source/blender/blenlib/intern/math_geom.cc b/source/blender/blenlib/intern/math_geom.cc index 1e169ab1f5d..c58285ce0d5 100644 --- a/source/blender/blenlib/intern/math_geom.cc +++ b/source/blender/blenlib/intern/math_geom.cc @@ -2701,7 +2701,7 @@ bool isect_sweeping_sphere_tri_v3(const float p1[3], z = x + y - (a * c - b * b); if (z <= 0.0f && (x >= 0.0f && y >= 0.0f)) { - //(((uint)z)& ~(((uint)x)|((uint)y))) & 0x80000000) { + // ((uint32_t(z) & ~(uint32_t(x) | uint32_t(y))) & 0x80000000) *r_lambda = t0; copy_v3_v3(ipoint, point); return true; diff --git a/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc b/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc index 4627d5d59f5..f59854dcde0 100644 --- a/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc +++ b/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc @@ -236,7 +236,7 @@ class VoronoiMetricFunction : public mf::MultiFunction { { BLI_assert(dimensions >= 1 && dimensions <= 4); BLI_assert(feature >= 0 && feature <= 4); - if ELEM (metric_, SHD_VORONOI_MINKOWSKI) { + if (ELEM(metric_, SHD_VORONOI_MINKOWSKI)) { static std::array signatures{ create_signature(1, SHD_VORONOI_F1, SHD_VORONOI_MINKOWSKI), create_signature(2, SHD_VORONOI_F1, SHD_VORONOI_MINKOWSKI),