Enable -Wsizeof-array-div for 3P code.

This warning usually indicates an incorrect size being computed,
which can cause severe bugs.

Bug: 296422292
Test: presubmit
Change-Id: I381dea70a6a408883ec772ccc006746ad66b835f
This commit is contained in:
Krzysztof Kosiński
2023-08-31 01:29:59 +00:00
parent 37aa33fcb1
commit 24686c5e22

View File

@@ -251,9 +251,6 @@ var (
noOverrideExternalGlobalCflags = []string{
// http://b/191699019
"-Wno-format-insufficient-args",
// http://b/296422292
// Usually signals a mistake and should be a hard error.
"-Wno-sizeof-array-div",
// http://b/296321145
// Indicates potential memory or stack corruption, so should be changed
// to a hard error. Currently triggered by some vendor code.