Prevent warnings from Amber failing the CTS build
authorCharlie Turner <cturner@igalia.com>
Mon, 23 Jan 2023 13:35:26 +0000 (13:35 +0000)
committerPiotr Byszewski <piotr.byszewski@mobica.com>
Thu, 2 Feb 2023 18:14:58 +0000 (18:14 +0000)
commitdced98a4acde499350ce4556af430d0b4bcba5ca
tree326d6b5937550e849b4edb6e65f06d7783fd94d7
parenta7da9993440d3a7b87040e3bf28934ddc6950743
Prevent warnings from Amber failing the CTS build

With clang++-16, I'm seeing lots of cases like,

/home/cturner/src/vk-gl-cts/external/amber/src/src/float16_helper.cc:66:42: error: unchecked operation on raw buffer in expression [-Werror,-Wunsafe-buffer-usage]
  uint32_t sign = (static_cast<uint32_t>(value[1]) & 0x80) << 24U;

Inhibit all warning messages for Clang, GCC & MSVC.

Components: Framework, Vulkan

Change-Id: I1910780048d8828a61733a5f5f36404f8a8184b0
external/amber/CMakeLists.txt