diff options
Diffstat (limited to 'src/pal/src/exception/remote-unwind.cpp')
-rw-r--r-- | src/pal/src/exception/remote-unwind.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pal/src/exception/remote-unwind.cpp b/src/pal/src/exception/remote-unwind.cpp index 33920eaca8..c30c463cfd 100644 --- a/src/pal/src/exception/remote-unwind.cpp +++ b/src/pal/src/exception/remote-unwind.cpp @@ -48,12 +48,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "pal.h" #include <dlfcn.h> -#if HAVE_LIBUNWIND_H -#ifndef __linux__ #define UNW_LOCAL_ONLY -#endif // !__linux__ +// Sub-headers included from the libunwind.h contain an empty struct +// and clang issues a warning. Until the libunwind is fixed, disable +// the warning. +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wextern-c-compat" #include <libunwind.h> -#endif // HAVE_LIBUNWIND_H +#pragma clang diagnostic pop SET_DEFAULT_DEBUG_CHANNEL(EXCEPT); |