Fix GCC 7 implicit fallthrough warnings
authorMika Väinölä <mika.vainola@siru.fi>
Tue, 20 Mar 2018 11:40:57 +0000 (13:40 +0200)
committerAlexander Galazin <alexander.galazin@arm.com>
Mon, 13 Apr 2020 16:05:52 +0000 (18:05 +0200)
commitc367c00d94fc25ddfafebe40d8ca6687e6b17459
tree62fbfbb97481d817259bd4569e21e236ffed0579
parent5ee7892b8363816ff40bb76f27d7dde90072eeab
Fix GCC 7 implicit fallthrough warnings

GCC 7 with -Wextra or -Wimplicit-fallthrough enabled warns when
a switch case falls through. For cases where this is intentional
the warning can be suppressed with a comment. Breaks and returns
were also added for cases which end in DE_FATAL.

Removing a fallthrough in vktSparseResourcesShaderIntrinsics.cpp
resulted in new test cases.

Affects: *

New tests:
dEQP-VK.sparse_resources.shader_intrinsics.3d_sparse_fetch.*

Components: Framework, Vulkan, OpenGL

VK-GL-CTS issue: 1067

Change-Id: I0306f96cf3a50e85144b4dd22a9a88cd908607d3
(cherry picked from commit 884a93c6b9bc5dc8a7fea9392b37b8fd5ea04d7b)
19 files changed:
android/cts/master/vk-master.txt
executor/xeXMLParser.cpp
external/openglcts/modules/gl/gl4cMultiBindTests.cpp
external/openglcts/modules/gles31/es31cSeparateShaderObjsTests.cpp
external/openglcts/modules/glesext/esextcTestCaseBase.cpp
external/vulkancts/modules/vulkan/binding_model/vktBindingShaderAccessTests.cpp
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp
external/vulkancts/modules/vulkan/shaderrender/vktShaderRenderTextureGatherTests.cpp
external/vulkancts/modules/vulkan/sparse_resources/vktSparseResourcesShaderIntrinsics.cpp
external/vulkancts/modules/vulkan/ycbcr/vktYCbCrViewTests.cpp
external/vulkancts/mustpass/1.0.3/vk-default.txt
framework/common/tcuAstcUtil.cpp
framework/egl/egluGLUtil.cpp
framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp
framework/referencerenderer/rrVertexAttrib.cpp
modules/gles3/functional/es3fFboRenderTest.cpp
modules/gles3/functional/es3fFboTestCase.cpp
modules/gles31/functional/es31fShaderFramebufferFetchTests.cpp
modules/glshared/glsBuiltinPrecisionTests.cpp