diff options
author | Nick Kralevich <nnk@google.com> | 2014-10-06 14:49:00 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-10-07 16:37:04 -0700 |
commit | ce92b41a00fb86656055eceab9648a858721c3b1 (patch) | |
tree | de7dfd41774aa2bb2c23f98e84e309f4eaff9f73 /tests | |
parent | b5e7eba6d1b97e471996fcfe7dbde7cbba7512ef (diff) | |
download | bionic-ce92b41a00fb86656055eceab9648a858721c3b1.zip bionic-ce92b41a00fb86656055eceab9648a858721c3b1.tar.gz bionic-ce92b41a00fb86656055eceab9648a858721c3b1.tar.bz2 |
cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
Otherwise the gcc compiler warning doesn't show up.
Add -Wno-error to fortify related tests. Fortify related tests
are expected to be examples of bad programs, and in many
cases shouldn't compile cleanly. Rewriting them to compile
cleanly isn't feasible nor desirable.
Bug: 17784968
(cherry picked from commit 1aaa17802c92d99ae170245c2b2f15a6c27b133e)
Change-Id: Ib6df1a3f44b55b1fff222e78395c10c51cd39817
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Android.mk | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/Android.mk b/tests/Android.mk index 69ff811..dd43049 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -171,11 +171,10 @@ $(foreach compiler,gcc clang, \ $(foreach test,1 2, \ $(eval fortify$(test)-tests-$(compiler)_cflags := \ $(test_cflags) \ + -Wno-error \ -U_FORTIFY_SOURCE \ -D_FORTIFY_SOURCE=$(test) \ -DTEST_NAME=Fortify$(test)_$(compiler)); \ - $(eval fortify$(test)-tests-$(compiler)_cflags_host := \ - -Wno-error); \ $(eval fortify$(test)-tests-$(compiler)_src_files := \ fortify_test.cpp); \ $(eval fortify_libs += fortify$(test)-tests-$(compiler)); \ |