Fix warning in gcc-8
authorGraeme Leese <gleese@broadcom.com>
Fri, 23 Jul 2021 18:00:11 +0000 (19:00 +0100)
committerPiers Daniell <pdaniell@nvidia.com>
Fri, 20 May 2022 16:40:37 +0000 (16:40 +0000)
commit8d492299714331fbaff77290ea1fa395f6f21adb
tree14f95880b03c2a990321b2b27a24b2ab7ec62441
parentea6633260d59d22183b0355829fc3767dc961acb
Fix warning in gcc-8

The code for setting up the output buffer was duplicated into each of
the cases for different input types, and the compiler doesn't understand
that DE_ASSERT marks an unreachable path. Changing to using standard
assert fixes the warning:

vktShaderFConvertTests.cpp:541:19: error: â€˜outputBufferSizeInfo::memorySizeBytes’
may be used uninitialized in this function [-Werror=maybe-uninitialized]
   541 |  BufferSizeInfo   outputBufferSizeInfo;
       |                   ^~~~~~~~~~~~~~~~~~~~

Component: Vulkan
Affects: dEQP-VK.glsl.builtin.precision_fconvert.*

Change-Id: Icf6302166d8bce7c3ae1447973c895c34465a726
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderFConvertTests.cpp