summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-02-14 11:15:58 -0800
committerElliott Hughes <enh@google.com>2013-02-14 11:15:58 -0800
commitdc5ec07158079b39f758ed41eca5b937e52c3729 (patch)
tree47048a5d5610b0c5d3b6976a8cd9262dfef00066
parentfe33fc790a16d85ce4109a4575d6fdcd88d42023 (diff)
downloadbionic-dc5ec07158079b39f758ed41eca5b937e52c3729.zip
bionic-dc5ec07158079b39f758ed41eca5b937e52c3729.tar.gz
bionic-dc5ec07158079b39f758ed41eca5b937e52c3729.tar.bz2
Turn on -Werror for ssp.cpp.
libc_bionic.a is already compiled -Werror, but this one file gets compiled into its own library because it needs to be compiled with -fno-stack-protector. Change-Id: I273c535ab5c73ccaccbcf793fda1f788a2589abe
-rw-r--r--libc/Android.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/Android.mk b/libc/Android.mk
index 4130e25..f78cf2c 100644
--- a/libc/Android.mk
+++ b/libc/Android.mk
@@ -726,7 +726,7 @@ WITH_MALLOC_CHECK_LIBC_A := $(strip $(WITH_MALLOC_CHECK_LIBC_A))
include $(CLEAR_VARS)
LOCAL_SRC_FILES := bionic/ssp.cpp
-LOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector
+LOCAL_CFLAGS := $(libc_common_cflags) -fno-stack-protector -Werror
LOCAL_C_INCLUDES := $(libc_common_c_includes)
LOCAL_MODULE := libbionic_ssp
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk