GCC 11 build fixes
authorMika Väinölä <mika.vainola@siru.fi>
Wed, 10 Mar 2021 11:16:38 +0000 (13:16 +0200)
committerziga-lunarg <ziga@lunarg.com>
Mon, 25 Jul 2022 12:04:50 +0000 (14:04 +0200)
commit0b5fcc40506969a61dd4045deef5f9d60ac8dbe6
treea446bc41f14eb71373aa1e59391560e099dba3fb
parent0418e59c74717d4d29b7eadf89f225cbdf8908ff
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: Id0d4e583b5c3bfab7b4c91c1c04372bcd55bac37
external/vulkancts/framework/vulkan/vkRayTracingUtil.cpp
external/vulkancts/modules/vulkan/synchronization/vktSynchronizationUtil.cpp
external/vulkancts/modules/vulkan/util/vktExternalMemoryUtil.cpp
external/vulkancts/modules/vulkan/ycbcr/vktYCbCrUtil.cpp
framework/opengl/simplereference/sglrReferenceContext.cpp
modules/glshared/glsBuiltinPrecisionTests.cpp
scripts/check_build_sanity.py