summaryrefslogtreecommitdiff
path: root/linker/linker_main.cpp
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2019-07-23 15:01:39 -0700
committerYi Kong <yikong@google.com>2019-07-23 15:03:16 -0700
commit7b50f7d51e62d8a6e32704cdb36e087debccbccd (patch)
treebc581b3cf0fb04f1b9844df58f6f9ade88c5bfb4 /linker/linker_main.cpp
parent6b2532e19a76e9b809d2e52e677b1f2004159443 (diff)
Add missing nothrow attribute
The upcoming compiler update emits warning about the missing nothrow attribute: bionic/libc/bionic/jemalloc.h:33:5: error: 'je_mallctl' is missing exception specification '__attribute__((nothrow))' [-Werror,-Wmissing-exception-spec] int je_mallctl(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t newlen); ^ __attribute__((nothrow)) external/jemalloc_new/include/jemalloc/jemalloc.h:230:38: note: previous declaration is here JEMALLOC_EXPORT int JEMALLOC_NOTHROW je_mallctl(const char *name, ^ external/jemalloc_new/include/jemalloc/jemalloc_rename.h:12:22: note: expanded from macro 'je_mallctl' # define je_mallctl je_mallctl Test: build with clang r365631 Bug: 131328001 Change-Id: Ia8b6f47d38e5a003b6282f10724b65b1f971ba84
Diffstat (limited to 'linker/linker_main.cpp')
0 files changed, 0 insertions, 0 deletions