star-3d

Surface structuring for efficient 3D geometric queries
git clone git://git.meso-star.fr/star-3d.git
Log | Files | Refs | README | LICENSE

commit 7d0304374806613143363cf7971a74805049a8f1
parent 4d4e14ccf033b4120494dcb2fc031cfeac4d05d9
Author: Christophe Coustet <christophe.coustet@meso-star.com>
Date:   Fri, 23 Oct 2020 11:12:51 +0200

Fix a MSVC warning on struct padding

Diffstat:
Msrc/s3d_backend.h | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/s3d_backend.h b/src/s3d_backend.h @@ -33,6 +33,18 @@ #ifndef S3D_BACKEND_H #define S3D_BACKEND_H +#include <rsys/rsys.h> /* COMPILER_CL */ + +#ifdef COMPILER_CL +/* Structure was padded due to alignment specifier */ +#pragma warning( push ) +#pragma warning( disable: 4324 ) +#endif + #include <embree3/rtcore.h> +#ifdef COMPILER_CL +#pragma warning( pop ) +#endif + #endif /* S3D_BACKEND_H */