Skip to content

Commit bdb7e16

Browse files
authored
Suppress unused variable warning (gazebosim#429)
* Supress unused variable warning Signed-off-by: Jorge Perez <[email protected]> * fix linter Signed-off-by: Jorge Perez <[email protected]> --------- Signed-off-by: Jorge Perez <[email protected]>
1 parent 9c97902 commit bdb7e16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DopplerVelocityLog.cc

+1
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,7 @@ namespace gz
12581258
// Iterate over the beam solid angle in camera coordinates
12591259
for (auto v = beamScanPatch.YMin(); v < beamScanPatch.YMax(); ++v)
12601260
{
1261+
(void) _height; // Supress unused warning in variable used below
12611262
assert(v >= 0 && v < static_cast<int>(_height));
12621263
const gz::math::Angle inclination =
12631264
v * intrinsics.step.Y() + intrinsics.offset.Y();

0 commit comments

Comments
 (0)