diff options
author | Logan Chien <loganchien@google.com> | 2019-01-16 13:21:22 +0800 |
---|---|---|
committer | Logan Chien <loganchien@google.com> | 2019-01-16 15:41:33 +0800 |
commit | ae4d10bf4ab7168ac585f65895c623d027b1e740 (patch) | |
tree | 502263e1afa0a6e2ba237549a881e6164ad297f2 /libc/malloc_debug/malloc_debug.cpp | |
parent | ca305a39e50d92dc572f50f00262b3dbb0dece9d (diff) |
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
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions