Add -Werror=format-security

Security hardening: don't allow code to compile which
uses format strings in an inappropriate way.  Make format
string compiler warnings into errors.

Change-Id: I1461dad589a2416420fd84ccf765983e859eea8a
This commit is contained in:
Nick Kralevich 2010-05-14 09:34:59 -07:00
parent 57b44e5287
commit d868cad828
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ TARGET_GLOBAL_CFLAGS += \
-funwind-tables \
-fstack-protector \
-Wa,--noexecstack \
-Werror=format-security \
-fno-short-enums \
$(arch_variant_cflags) \
-include $(android_config_h) \