Fix some warnings about unused parameters

Signed-off-by: amzn-sj <srikkant@amazon.com>
This commit is contained in:
amzn-sj
2022-01-20 11:01:00 -08:00
parent d6cdd1d053
commit 8e08e42c86
2 changed files with 8 additions and 9 deletions
@@ -72,7 +72,6 @@ protected:
void ProcessRegionLoop(const AZ::Aabb& inRegion, const AZ::Vector2& stepSize,
AzFramework::Terrain::SurfacePointRegionFillCallback perPositionCallback,
AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter,
AzFramework::SurfaceData::SurfaceTagWeightList* surfaceTags,
float mockHeight)
{
@@ -281,9 +280,9 @@ TEST_F(TerrainPhysicsColliderComponentTest, TerrainPhysicsColliderGetHeightsRetu
ON_CALL(terrainListener, ProcessHeightsFromRegion).WillByDefault(
[this](const AZ::Aabb& inRegion, const AZ::Vector2& stepSize,
AzFramework::Terrain::SurfacePointRegionFillCallback perPositionCallback,
AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
[[maybe_unused]] AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
{
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, sampleFilter, nullptr, 0.0f);
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, nullptr, 0.0f);
}
);
@@ -323,9 +322,9 @@ TEST_F(TerrainPhysicsColliderComponentTest, TerrainPhysicsColliderReturnsRelativ
ON_CALL(terrainListener, ProcessHeightsFromRegion).WillByDefault(
[this, mockHeight](const AZ::Aabb& inRegion, const AZ::Vector2& stepSize,
AzFramework::Terrain::SurfacePointRegionFillCallback perPositionCallback,
AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
[[maybe_unused]] AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
{
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, sampleFilter, nullptr, mockHeight);
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, nullptr, mockHeight);
}
);
@@ -476,9 +475,9 @@ TEST_F(TerrainPhysicsColliderComponentTest, TerrainPhysicsColliderGetHeightsAndM
ON_CALL(terrainListener, ProcessSurfacePointsFromRegion).WillByDefault(
[this, mockHeight, &surfaceTags](const AZ::Aabb& inRegion, const AZ::Vector2& stepSize,
AzFramework::Terrain::SurfacePointRegionFillCallback perPositionCallback,
AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
[[maybe_unused]] AzFramework::Terrain::TerrainDataRequests::Sampler sampleFilter)
{
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, sampleFilter, &surfaceTags, mockHeight);
ProcessRegionLoop(inRegion, stepSize, perPositionCallback, &surfaceTags, mockHeight);
}
);
@@ -969,7 +969,7 @@ namespace UnitTest
AzFramework::SurfaceData::SurfaceTagWeightList expectedTags;
SetupSurfaceWeightMocks(entity.get(), expectedTags);
auto perPositionCallback = [&expectedTags](size_t xIndex, size_t yIndex,
auto perPositionCallback = [&expectedTags]([[maybe_unused]] size_t xIndex, [[maybe_unused]] size_t yIndex,
const AzFramework::SurfaceData::SurfacePoint& surfacePoint, [[maybe_unused]] bool terrainExists)
{
constexpr float epsilon = 0.0001f;
@@ -1015,7 +1015,7 @@ namespace UnitTest
AzFramework::SurfaceData::SurfaceTagWeightList expectedTags;
SetupSurfaceWeightMocks(entity.get(), expectedTags);
auto perPositionCallback = [&expectedTags](size_t xIndex, size_t yIndex,
auto perPositionCallback = [&expectedTags]([[maybe_unused]] size_t xIndex, [[maybe_unused]] size_t yIndex,
const AzFramework::SurfaceData::SurfacePoint& surfacePoint, [[maybe_unused]] bool terrainExists)
{
constexpr float epsilon = 0.0001f;