Skip to content

Commit f30bd5c

Browse files
committed
Remove warnings in disk.cpp and rectangle.cpp
1 parent 4b39198 commit f30bd5c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/shapes/disk.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ class Disk final : public Shape<Float, Spectrum> {
186186
Float local_x = cache[0];
187187
Float local_y = cache[1];
188188
#else
189+
ENOKI_MARK_USED(cache);
189190
Ray3f ray_ = m_world_to_object.transform_affine(ray);
190191
Float t = -ray_.o.z() / ray_.d.z();
191192
Point3f local = ray_(t);

src/shapes/rectangle.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ class Rectangle final : public Shape<Float, Spectrum> {
216216
Float local_x = cache[0];
217217
Float local_y = cache[1];
218218
#else
219+
ENOKI_MARK_USED(cache);
219220
Ray3f ray = m_world_to_object.transform_affine(ray_);
220221
Float t = -ray.o.z() * ray.d_rcp.z();
221222
Point3f local = ray(t);

0 commit comments

Comments
 (0)