star-geometry-3d

Clean and decorate 3D geometries
git clone git://git.meso-star.fr/star-geometry-3d.git
Log | Files | Refs | README | LICENSE

commit e84f5b3d83d95f2011f37cf5130b03d898f57bea
parent f575562b53d37e452db8df6054a89f0ac64ce54e
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 15 Oct 2021 11:36:56 +0200

Fix compilation warnings detected by gcc 11

Diffstat:
Msrc/test_sg3d_utils.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test_sg3d_utils.h b/src/test_sg3d_utils.h @@ -54,7 +54,7 @@ static const double cube_vertices[8/*#vertices*/ * 3/*#coords per vertex*/] = { 0.0, 1.0, 1.0, 1.0, 1.0, 1.0 }; -static const unsigned nvertices = sizeof(cube_vertices) / sizeof(double[3]); +static const unsigned nvertices = sizeof(cube_vertices) / (3*sizeof(double)); /* Distorded cube */ static const double box_vertices[8/*#vertices*/ * 3/*#coords per vertex*/] = { 0.1, 0.0, 0.0,