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>
Wed, 11 Apr 2018 15:44:03 +0000 (11:44 -0400)
commit884a93c6b9bc5dc8a7fea9392b37b8fd5ea04d7b
treeed40764b5c271c92fc327d1538e88888dff6e795
parent7c4d5ec85b66981d0de2094a958d324544f1d70d
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
31 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/pipeline/vktPipelineImageSamplingInstance.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/subgroups/vktSubgroupsArithmeticTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotBroadcastTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBallotOtherTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsBasicTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsClusteredTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsQuadTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsShapeTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsShuffleTests.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsTestsUtils.cpp
external/vulkancts/modules/vulkan/subgroups/vktSubgroupsVoteTests.cpp
external/vulkancts/modules/vulkan/ycbcr/vktYCbCrViewTests.cpp
external/vulkancts/mustpass/1.1.2/vk-default-no-waivers.txt
external/vulkancts/mustpass/1.1.2/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