Move non-virtual-dtor warning to C++ only

Causes a warning when building C files.

Change-Id: Ib82134a0bb7a15c88a3edfbdb04d570fde643198
This commit is contained in:
Wyatt Hepler 2019-12-06 10:06:13 -08:00
parent 9113c9fea2
commit 1919c64b5c

View File

@ -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") {