commit 0b6728c510f0da98208d661d1a8e147d8cbf1c7f
parent ebbd5359dd3bb1db4e758bf4ee5fcf69281fddfb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 15 Oct 2021 12:25:49 +0200
Fix compilation warnings detected by gcc 11
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test_senc3d_utils.h b/src/test_senc3d_utils.h
@@ -51,7 +51,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(box_vertices) / sizeof(double[3]);
+static const unsigned nvertices = sizeof(box_vertices) / (3*sizeof(double));
STATIC_ASSERT(sizeof(box_vertices) == sizeof(cube_vertices),
The_2_geometries_must_have_the_same_number_of_vertices);