solstice-solver

Solver library of the solstice app
git clone git://git.meso-star.com/solstice-solver.git
Log | Files | Refs | README | LICENSE

commit 7860dd659c29871c143e6a0beb5a476027bd73aa
parent 2ccb68eaa0253d2327ba9f273f38c779a5ef5ee6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 15 Mar 2017 17:13:31 +0100

Fix warnings on CL

Diffstat:
Msrc/ssol_mc_receiver.c | 9+++++++++
Msrc/test_ssol_scene.c | 2+-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/ssol_mc_receiver.c b/src/ssol_mc_receiver.c @@ -17,6 +17,11 @@ #include "ssol_estimator_c.h" #include "ssol_object_c.h" +#ifdef COMPILER_CL + #pragma warning(push) + #pragma warning(disable:4706) /* Assignment within a condition */ +#endif + /******************************************************************************* * Exported functions ******************************************************************************/ @@ -122,3 +127,7 @@ ssol_mc_shape_get_mc_primitive return RES_OK; } +#ifdef COMPILER_CL + #pragma warning(pop) +#endif + diff --git a/src/test_ssol_scene.c b/src/test_ssol_scene.c @@ -40,7 +40,7 @@ instance_func(struct ssol_instance* inst, void* context) CHECK(ctx->instance2_found, 0); ctx->instance2_found = 1; } else { - CHECK(0, 1); /* Unreachable code */ + FATAL("Unreachable code.\n"); } return RES_OK; }