platform_bionic/libc/include
Logan Chien ae4d10bf4a Add __attribute__((unused)) to __BIONIC_ERROR_FUNCTION_VISIBILITY
This commit adds `__attribute__((unused))` to
`__BIONIC_ERROR_FUNCTION_VISIBILITY`, so that `open()`, `openat()`,
`snprintf()`, and `sprintf()` don't raise `-Werror,-Wunused-function`
when `_FORTIFY_SOURCE` is enabled.

These errors were hidden because the include directories were passed
with `-isystem` (instead of `-I`) and clang did not report
`-Wunused-function` from `-isystem`.

Bug: 119086738
Test: make checkbuild
Change-Id: I0de71efdbacd90c5c6a419fc0368c92e8efdfd63
2019-01-16 15:41:33 +08:00
..
android Fix a comment in <android/api-level.h>. 2018-11-15 15:07:13 -08:00
arpa Pad queries when EDNS0 is enabled. 2018-04-02 05:28:16 +00:00
bits Make android_get_application_target_sdk_version available to the NDK. 2018-11-15 11:07:30 -08:00
net Another round of documentation. 2018-10-04 16:35:13 -07:00
netinet Another round of documentation. 2018-10-04 16:35:13 -07:00
netpacket
sys Add __attribute__((unused)) to __BIONIC_ERROR_FUNCTION_VISIBILITY 2019-01-16 15:41:33 +08:00
alloca.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
assert.h Start documenting libc. 2018-08-23 11:03:17 -07:00
byteswap.h Start documenting libc. 2018-08-23 11:03:17 -07:00
complex.h Reland "Retire GCC FORTIFY." 2018-07-24 19:36:51 +00:00
cpio.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ctype.h Another round of documentation. 2018-10-04 16:35:13 -07:00
dirent.h Deprecate readdir_r. 2018-01-22 17:15:25 -08:00
dlfcn.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
elf.h Reject .so files using ELF TLS. 2018-03-23 18:46:07 -07:00
endian.h Start documenting libc. 2018-08-23 11:03:17 -07:00
err.h Start documenting libc. 2018-08-23 11:03:17 -07:00
errno.h Start documenting libc. 2018-08-23 11:03:17 -07:00
error.h Start documenting libc. 2018-08-23 11:03:17 -07:00
fcntl.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
features.h Start documenting libc. 2018-08-23 11:03:17 -07:00
fenv.h Remove ARM/MIPS fenv duplication. 2018-08-30 09:26:43 -07:00
fnmatch.h Start documenting libc. 2018-08-23 11:03:17 -07:00
fts.h Fix various ftw/nftw "shall fail"s from POSIX. 2018-05-08 15:20:07 -07:00
ftw.h Better backwards compatibility for stat64. 2018-02-12 15:48:01 -08:00
getopt.h Another round of documentation. 2018-10-04 16:35:13 -07:00
glob.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
grp.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
iconv.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ifaddrs.h Start documenting libc. 2018-08-23 11:03:17 -07:00
inttypes.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
langinfo.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
lastlog.h Start documenting libc. 2018-08-23 11:03:17 -07:00
libgen.h Start documenting libc. 2018-08-23 11:03:17 -07:00
limits.h More <limits.h> fixes. 2017-10-18 13:27:01 -07:00
link.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
locale.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
malloc.h Remove obsolete workaround. 2018-11-06 11:17:34 -08:00
math.h Update to FreeBSD libm r336665. 2018-07-24 10:36:00 -07:00
memory.h Start documenting libc. 2018-08-23 11:03:17 -07:00
mntent.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
netdb.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
nl_types.h Start documenting libc. 2018-08-23 11:03:17 -07:00
paths.h Add Android Runtime APEX bin directory to Bionic default shell search path. 2018-12-06 17:03:47 +00:00
poll.h Accept NULL for fds parameter in poll. 2018-08-28 14:20:15 -07:00
pthread.h Add missing __INTRODUCED_IN to pthread_attr_setinheritsched/pthread_attr_getinheritsched. 2018-06-07 09:11:47 -07:00
pty.h Start documenting libc. 2018-08-23 11:03:17 -07:00
pwd.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
regex.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
resolv.h Expose __res_randomid. 2018-07-17 13:02:52 -07:00
sched.h Type of second __sched_cpucount should be "const cpu_set_t*". 2018-04-13 16:07:21 -07:00
search.h The future is now (2018 edition). 2018-01-30 08:54:12 -08:00
semaphore.h Add _monotonic_np versions of timed wait functions 2018-03-20 18:41:22 -07:00
setjmp.h setjmp is a macro. 2018-07-17 13:55:36 -07:00
signal.h Make android_get_application_target_sdk_version available to the NDK. 2018-11-15 11:07:30 -08:00
spawn.h Add sigset64_t and accompanying functions. 2018-01-30 18:47:16 -08:00
stdatomic.h Reland "Retire GCC FORTIFY." 2018-07-24 19:36:51 +00:00
stdint.h Fix instances of '#if __LP64__'. 2016-09-15 14:21:28 -07:00
stdio.h Remove __overloadable/__RENAME_CLANG 2018-02-06 13:35:56 -08:00
stdio_ext.h Start documenting libc. 2018-08-23 11:03:17 -07:00
stdlib.h Add getloadavg(3). 2018-10-23 11:23:00 -07:00
string.h Reland "Retire GCC FORTIFY." 2018-07-24 19:36:51 +00:00
strings.h Start documenting libc. 2018-08-23 11:03:17 -07:00
syscall.h Start documenting libc. 2018-08-23 11:03:17 -07:00
sysexits.h Start documenting libc. 2018-08-23 11:03:17 -07:00
syslog.h Start documenting libc. 2018-08-23 11:03:17 -07:00
tar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
termio.h Start documenting libc. 2018-08-23 11:03:17 -07:00
termios.h Start documenting libc. 2018-08-23 11:03:17 -07:00
time.h Add C11 timespec_get. 2018-07-17 13:21:05 -07:00
time64.h Remove the non-standard time64 stuff for LP64. 2014-05-05 17:14:02 -07:00
uchar.h Start documenting libc. 2018-08-23 11:03:17 -07:00
ucontext.h Start documenting libc. 2018-08-23 11:03:17 -07:00
unistd.h Document the set*id functions. 2018-08-28 12:17:20 -07:00
utime.h Start documenting libc. 2018-08-23 11:03:17 -07:00
utmp.h Name function arguments in libc headers for Studio. 2017-08-11 17:45:59 -07:00
wait.h Start documenting libc. 2018-08-23 11:03:17 -07:00
wchar.h Add remaining _l function stubs. 2018-02-13 23:14:12 -08:00
wctype.h Re-submit "Name function arguments in libc headers for Studio." 2017-08-18 00:00:38 +00:00
xlocale.h Start documenting libc. 2018-08-23 11:03:17 -07:00