commit 4ce0870c91aeca3b9555e4a5a102edff6c53c9e8
parent 78e95d5cbb8e231cecc26964037fd4e8905d29aa
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 22 Apr 2021 11:57:35 +0200
Fix "unused variable" warnings
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/combustion/htrdr_combustion_compute_radiance_sw.c b/src/combustion/htrdr_combustion_compute_radiance_sw.c
@@ -726,7 +726,6 @@ sample_bounce_direction
struct ssp_rng* rng,
const struct s3d_hit* hit,
const double wlen,
- const double pos[3],
const double incoming_dir[3],
double bounce_dir[3])
{
@@ -738,7 +737,7 @@ sample_bounce_direction
double bounce_reflectivity;
int bsdf_type = 0;
- ASSERT(cmd && rng && hit && pos && incoming_dir && bounce_dir);
+ ASSERT(cmd && rng && hit && incoming_dir && bounce_dir);
ASSERT(!S3D_HIT_NONE(hit));
/* Recover the bsdf of the intersected interface */
@@ -988,7 +987,7 @@ combustion_compute_radiance_sw
/* Sample a new optical path direction from the surface BSDF */
bounce_reflectivity = sample_bounce_direction
- (cmd, ithread, rng, &hit_curr, wlen, pos, dir, wi);
+ (cmd, ithread, rng, &hit_curr, wlen, dir, wi);
/* Russian roulette wrt surface scattering */
r = ssp_rng_canonical(rng);
diff --git a/src/core/htrdr_geometry.c b/src/core/htrdr_geometry.c
@@ -668,6 +668,7 @@ htrdr_geometry_get_hit_position
{
struct s3d_attrib attr;
ASSERT(geom && hit && position && !S3D_HIT_NONE(hit));
+ (void)geom;
S3D(primitive_get_attrib(&hit->prim, S3D_POSITION, hit->uv, &attr));
position[0] = attr.value[0];