libunwind: patch to silence warning

Not sure why this warning is being emitted; let's reexamine it on the
next libunwind upgrade. I triggered it with this:

zig c++ -o hello hello.cpp -target x86_64-windows
This commit is contained in:
Andrew Kelley 2021-12-03 21:00:38 -07:00
parent fffa89700e
commit 003bba47cc
4 changed files with 8 additions and 0 deletions

View file

@ -28,6 +28,8 @@
#include "libunwind_ext.h" #include "libunwind_ext.h"
#include "UnwindCursor.hpp" #include "UnwindCursor.hpp"
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
using namespace libunwind; using namespace libunwind;
#define STATUS_USER_DEFINED (1u << 29) #define STATUS_USER_DEFINED (1u << 29)

View file

@ -22,6 +22,8 @@
#include "Unwind-EHABI.h" #include "Unwind-EHABI.h"
#include "unwind.h" #include "unwind.h"
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
#if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS) #if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS)
#if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND) #if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)

View file

@ -30,6 +30,8 @@
#include "libunwind_ext.h" #include "libunwind_ext.h"
#include "unwind.h" #include "unwind.h"
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
#if !defined(_LIBUNWIND_ARM_EHABI) && !defined(__USING_SJLJ_EXCEPTIONS__) #if !defined(_LIBUNWIND_ARM_EHABI) && !defined(__USING_SJLJ_EXCEPTIONS__)
#ifndef _LIBUNWIND_SUPPORT_SEH_UNWIND #ifndef _LIBUNWIND_SUPPORT_SEH_UNWIND

View file

@ -30,6 +30,8 @@
#include "AddressSpace.hpp" #include "AddressSpace.hpp"
#include "UnwindCursor.hpp" #include "UnwindCursor.hpp"
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
using namespace libunwind; using namespace libunwind;
/// internal object to represent this processes address space /// internal object to represent this processes address space