Revert "Enable -Werror=incompatible-function-pointer-types"
This reverts commit 07c362bf7f7a4205dfd002d8607bee4af6ab8b43.
Reason for revert: DroidMonitor: Potential culprit for Bug 304839693 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.”.
Change-Id: Iafb894510c48af2dd8b015d7264a031ff9348884
diff --git a/cc/config/global.go b/cc/config/global.go
index f79d16a..62b008b 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -248,7 +248,6 @@
"-Werror=fortify-source",
"-Werror=address-of-temporary",
- "-Werror=incompatible-function-pointer-types",
"-Werror=null-dereference",
"-Werror=return-type",
@@ -325,6 +324,10 @@
"-fcommon",
// http://b/191699019
"-Wno-format-insufficient-args",
+ // http://b/296321145
+ // Indicates potential memory or stack corruption, so should be changed
+ // to a hard error. Currently triggered by some vendor code.
+ "-Wno-incompatible-function-pointer-types",
// http://b/296321508
// Introduced in response to a critical security vulnerability and
// should be a hard error - it requires only whitespace changes to fix.