GCC 11 build fixes for opengl-es-cts
authorTapani Pälli <tapani.palli@intel.com>
Tue, 26 Oct 2021 11:12:16 +0000 (14:12 +0300)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 5 Nov 2021 14:00:05 +0000 (14:00 +0000)
commit51e6da82e9ff190b7598f9d494f8fa860e1ce2bd
tree6ae140732eea497ac7213a26319d62791331f42d
parent920b3ed443dc08ca8fe2cc0888f44c48574b6d38
GCC 11 build fixes for opengl-es-cts

Add missing limits header to misc files to fix compilation.

+ changes to fix following compilation warnings:

"warning: expression does not compute the number of elements in this array;
element type is ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’},
not ‘std::string [15]’ {aka ‘std::__cxx11::basic_string<char> [15]’}
[-Wsizeof-array-div]"

"warning: loop variable ‘ext’ creates a copy from type
‘const std::__cxx11::basic_string<char>’ [-Wrange-loop-construct]"

"warning: comparison of unsigned expression in ‘>= 0’ is always true
[-Wtype-limits]"

Components: OpenGL ES
VK-GL-CTS issue: 3245

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Change-Id: If62a44d47afccf1118a6fb0986d0c6e715f78c48
external/openglcts/modules/gl/gl4cDirectStateAccessVertexArraysTests.cpp
external/openglcts/modules/gles31/es31cArrayOfArraysTests.cpp
external/vulkancts/framework/vulkan/vkRayTracingUtil.hpp
external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp
external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmNonSemanticInfoTests.cpp