commit 401c5325c8c80e05e59d874dcbdf3dc1f4466f94 parent 960da31abd5db328b9cb6b4d658430888b91c821 Author: Christophe Coustet <christophe.coustet@meso-star.com> Date: Tue, 5 Jan 2021 11:09:35 +0100 Fix a MSVC warning on struct padding Diffstat:
| M | src/s2d_backend.h | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/s2d_backend.h b/src/s2d_backend.h @@ -33,7 +33,19 @@ #ifndef S2D_BACKEND_H #define S2D_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 /* S2D_BACKEND_H */