commit 519540793f7d3cdee0225528dc0a69106f7993da parent dd2ca0cd2d1b83e0b5c920ab26b9c37125c229b3 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 13 Oct 2021 18:34:24 +0200 Fix compilation warnings detected by gcc 11 Diffstat:
| M | src/test_scam_cbox.h | | | 8 | ++++---- |
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test_scam_cbox.h b/src/test_scam_cbox.h @@ -106,11 +106,11 @@ const double cbox_cols[] = { #undef RED #undef GREEN -const unsigned cbox_nvtxs = sizeof(cbox_vtxs) / sizeof(float[3]); -const unsigned cbox_ntris = sizeof(cbox_tris) / sizeof(unsigned[3]); +const unsigned cbox_nvtxs = sizeof(cbox_vtxs) / (sizeof(float)*3); +const unsigned cbox_ntris = sizeof(cbox_tris) / (sizeof(unsigned)*3); STATIC_ASSERT - ( sizeof(cbox_tris)/sizeof(unsigned[3]) - == sizeof(cbox_cols)/sizeof(double[3]), Unexpected_data_layout); + ( sizeof(cbox_tris)/(sizeof(unsigned)*3) + == sizeof(cbox_cols)/(sizeof(double)*3), Unexpected_data_layout); /******************************************************************************* * Functions