GCC 11 build fixes
authorMika Väinölä <mika.vainola@siru.fi>
Wed, 10 Mar 2021 11:16:38 +0000 (13:16 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 5 May 2021 05:52:10 +0000 (05:52 +0000)
commit2a0dad2819b1ea1e36c56db2e89b8cec2cf2072f
tree903faf7ae43a56eb48b513984ab867249a208222
parent9a714a7ca77007b570e082a605c39c875089823f
GCC 11 build fixes

Some files used std::numeric_limits without including <limits> and
failed to compile.

Some dynamic casts and calls to AndroidHardwareBufferExternalApi::
getInstance() produced nonnull warnings. Suppress these by
wrapping them in if statements.

Update Amber to suppress some new uninitialized variable warnings.

This commit also removes implicit-fallthrough from the list of ignored
GCC warnings in check_build_sanity.py. All such warnings in the CTS
should be fixed by now and recent versions of Clang also support
this warning.

Affects: All Amber tests

VK-GL-CTS issue: 2842

Change-Id: I5bd290f9c312a30c2fcb223307c7b5c785a0fa92
18 files changed:
external/fetch_sources.py
external/vulkancts/framework/vulkan/vkRayTracingUtil.cpp
external/vulkancts/framework/vulkan/vkRayTracingUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
external/vulkancts/modules/vulkan/draw/vktDrawDepthClampTests.cpp
external/vulkancts/modules/vulkan/memory/vktMemoryDeviceMemoryReportTests.cpp
external/vulkancts/modules/vulkan/ray_query/vktRayQueryAccelerationStructuresTests.cpp
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingAccelerationStructuresTests.cpp
external/vulkancts/modules/vulkan/ray_tracing/vktRayTracingBuildTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp
external/vulkancts/modules/vulkan/synchronization/vktSynchronizationUtil.cpp
external/vulkancts/modules/vulkan/util/vktExternalMemoryUtil.cpp
external/vulkancts/modules/vulkan/wsi/vktWsiFullScreenExclusiveTests.cpp
external/vulkancts/modules/vulkan/ycbcr/vktYCbCrUtil.cpp
framework/opengl/simplereference/sglrReferenceContext.cpp
modules/egl/teglImageFormatTests.cpp
modules/glshared/glsBuiltinPrecisionTests.cpp
scripts/check_build_sanity.py