From 1919c64b5c614f59396e9e3f05653eae1214d7d7 Mon Sep 17 00:00:00 2001 From: Wyatt Hepler Date: Fri, 6 Dec 2019 10:06:13 -0800 Subject: [PATCH] Move non-virtual-dtor warning to C++ only Causes a warning when building C files. Change-Id: Ib82134a0bb7a15c88a3edfbdb04d570fde643198 --- pw_build/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pw_build/BUILD.gn b/pw_build/BUILD.gn index 04b0243ab..3316607d4 100644 --- a/pw_build/BUILD.gn +++ b/pw_build/BUILD.gn @@ -27,13 +27,13 @@ config("strict_warnings") { cflags = [ "-Wall", "-Wextra", - "-Wnon-virtual-dtor", # Make all warnings errors, except for the exemptions below. "-Werror", "-Wno-error=cpp", # preprocessor #warning statement "-Wno-error=deprecated-declarations", # [[deprecated]] attribute ] + cflags_cc = [ "-Wnon-virtual-dtor" ] } config("cpp17") {