Disable Wunused-but-set-variable warnings

Bug: 97589
Change-Id: I87c203b3f3a2aaac0a895f99237ba4d78586f823
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/vulkan-cts/+/667624
Reviewed-by: Craig Stout <cstout@google.com>
diff --git a/external/amber/CMakeLists.txt b/external/amber/CMakeLists.txt
index f6d0899..1678027 100644
--- a/external/amber/CMakeLists.txt
+++ b/external/amber/CMakeLists.txt
@@ -10,3 +10,8 @@
 set(Vulkan-Headers_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../vulkancts/framework/vulkan/)
 
 add_subdirectory(src)
+
+# TODO(fxbug.dev/97589): Remove when errors are fixed.
+target_compile_options(libamber PRIVATE
+  -Wno-unused-but-set-variable
+)
diff --git a/fuchsia/build.sh b/fuchsia/build.sh
index aa952f2..a44f336 100755
--- a/fuchsia/build.sh
+++ b/fuchsia/build.sh
@@ -19,6 +19,8 @@
 
 # This matches what Fuchsia's binaries are compiled with.
 c_cxx_flags="-fexperimental-relative-c++-abi-vtables"
+# TODO(fxbug.dev/97589): Remove when errors are fixed.
+c_cxx_flags="${c_cxx_flags} -Wno-unused-but-set-variable"
 if [[ $target_cpu == "arm64" ]]; then
 	extra_args="-DFUCHSIA_SYSTEM_PROCESSOR=aarch64 -DFUCHSIA_COMPILER_TARGET=aarch64-fuchsia -DDE_CPU=DE_CPU_ARM_64 -DDE_PTR_SIZE=8"
 else