OSDN Git Service

cdefs.h: add artificial attribute to FORTIFY_SOURCE functions
authorNick Kralevich <nnk@google.com>
Mon, 6 Oct 2014 21:49:00 +0000 (14:49 -0700)
committerElliott Hughes <enh@google.com>
Tue, 7 Oct 2014 23:37:04 +0000 (16:37 -0700)
commitce92b41a00fb86656055eceab9648a858721c3b1
treede7dfd41774aa2bb2c23f98e84e309f4eaff9f73
parentb5e7eba6d1b97e471996fcfe7dbde7cbba7512ef
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
libc/include/sys/cdefs.h
tests/Android.mk