Skip to content

Commit

Permalink
Fix unused variable warnings (#989)
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Apr 15, 2024
1 parent 38baca4 commit 8128bb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/gz/rendering/base/BaseGlobalIlluminationVct.hh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ namespace gz
void BaseGlobalIlluminationVct<T>::SetResolution(
const uint32_t _resolution[3])
{
(void)(_resolution);
GZ_ASSERT(math::isPowerOfTwo(_resolution[0]),
"Resolution must be power of 2");
GZ_ASSERT(math::isPowerOfTwo(_resolution[1]),
Expand All @@ -148,6 +149,7 @@ namespace gz
void BaseGlobalIlluminationVct<T>::SetOctantCount(
const uint32_t _octants[3])
{
(void)(_octants);
GZ_ASSERT(_octants[0] > 0u, "Subdivision must be greater than 0");
GZ_ASSERT(_octants[1] > 0u, "Subdivision must be greater than 0");
GZ_ASSERT(_octants[2] > 0u, "Subdivision must be greater than 0");
Expand Down

0 comments on commit 8128bb8

Please sign in to comment.