commit 98d2269fce82476391163687094174c032862acf parent cf1142518c25dd8933c0a44826c96f4b7eac1a2c Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 1 Jun 2016 11:40:26 +0200 Disable the "Assignment within a condition" CL warning Diffstat:
| M | src/sstl.c | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/sstl.c b/src/sstl.c @@ -36,6 +36,11 @@ #include <rsys/ref_count.h> #include <rsys/stretchy_array.h> +#ifdef COMPILER_CL + #pragma warning(push) + #pragma warning(disable:4706) /* Assignment within a condition */ +#endif + struct solid { char* name; unsigned* indices; @@ -604,3 +609,7 @@ sstl_get_desc(const struct sstl* sstl, struct sstl_desc* desc) return RES_OK; } +#ifdef COMPILER_CL + #pragma warning(pop) +#endif +