diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-04 05:45:24 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-04 05:45:24 +0000 |
commit | 3eacb7e06eb996c1015ee7e67c4f323f35c31208 (patch) | |
tree | 3dd9e1538777fdfd0d0fcd89cccbed290c29033d /src | |
parent | 71ba2871943cec379da0585c16f69fb5ac5a884b (diff) |
tweak definition to avoid GCC warning
Use an `extern "C" { }` block around the definition rather than doing
the inline definition. This avoids a GCC warning about a declaration
being extern and having a definition. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@290937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src')
-rw-r--r-- | src/cxa_handlers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cxa_handlers.cpp b/src/cxa_handlers.cpp index 3f78131..ce2cfba 100644 --- a/src/cxa_handlers.cpp +++ b/src/cxa_handlers.cpp @@ -104,7 +104,9 @@ terminate() _NOEXCEPT // In the future this will become: // std::atomic<std::new_handler> __cxa_new_handler(0); -extern "C" _LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0; +extern "C" { +_LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0; +} new_handler set_new_handler(new_handler handler) _NOEXCEPT |