summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorLogan Chien <loganchien@google.com>2019-01-16 13:21:22 +0800
committerLogan Chien <loganchien@google.com>2019-01-16 15:41:33 +0800
commitae4d10bf4ab7168ac585f65895c623d027b1e740 (patch)
tree502263e1afa0a6e2ba237549a881e6164ad297f2 /libc/malloc_debug/malloc_debug.cpp
parentca305a39e50d92dc572f50f00262b3dbb0dece9d (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