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