commit 8492d4d2d77d8aebdbd6bbac67c5d42acef41042
parent 643a53fb57ce1f7665071550640b8f333d52bef9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 18 May 2015 15:59:45 +0200
Disable a MSVC warning
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/s3d_backend.h b/src/s3d_backend.h
@@ -39,6 +39,9 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wsign-compare"
+#elif defined(COMPILER_CL)
+ #pragma warning(push)
+ #pragma warning(disable:4324) /* Structure was padded due to alignment */
#endif
#include <embree2/rtcore.h>
@@ -46,6 +49,8 @@
#ifdef COMPILER_GCC
#pragma GCC diagnostic pop
+#elif defined(COMPILER_CL)
+ #pragma warning(pop)
#endif
#endif /* S3D_BACKEND_H */