From c6aa48e4ead8cc544a41a9a096fb07170b23eb67 Mon Sep 17 00:00:00 2001 From: Antonio Maiorano Date: Wed, 31 Mar 2021 23:39:46 +0000 Subject: [PATCH] CMake: disable "no-used-but-marked-unused" Clang warning This warning arises when using gtest SCOPED_TRACE. Chromium doesn't enable -Weverything, which is why the GN build doesn't produce this warning. Bug: tint:680 Change-Id: Ie90ea3b9378a1864165bfd889286071d9c0b88c6 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/46580 Kokoro: Kokoro Reviewed-by: Ben Clayton Commit-Queue: Antonio Maiorano --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index edfb182d7f..506755a3b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,6 +167,7 @@ function(tint_default_compile_options TARGET) -Wno-return-std-move-in-c++11 -Wno-unknown-warning-option -Wno-undefined-var-template + -Wno-used-but-marked-unused -Weverything ) endif()