authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-03 21:00:38-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-12-06 14:29:40-07:00
log003bba47ccd0b57e20192b6123b1be643f35da83
tree46709006baed5377e2b11d6fc2862053c7e090ee
parentfffa89700e1726508b5e5a3807fbc3a33eeea88d

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

4 files changed, 8 insertions(+), 0 deletions(-)

lib/libunwind/src/Unwind-seh.cpp+2
...@@ -28,6 +28,8 @@...@@ -28,6 +28,8 @@
28#include "libunwind_ext.h"28#include "libunwind_ext.h"
29#include "UnwindCursor.hpp"29#include "UnwindCursor.hpp"
3030
31#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
32
31using namespace libunwind;33using namespace libunwind;
3234
33#define STATUS_USER_DEFINED (1u << 29)35#define STATUS_USER_DEFINED (1u << 29)
lib/libunwind/src/UnwindLevel1-gcc-ext.c+2
...@@ -22,6 +22,8 @@...@@ -22,6 +22,8 @@
22#include "Unwind-EHABI.h"22#include "Unwind-EHABI.h"
23#include "unwind.h"23#include "unwind.h"
2424
25#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
26
25#if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS)27#if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS)
2628
27#if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)29#if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)
lib/libunwind/src/UnwindLevel1.c+2
...@@ -30,6 +30,8 @@...@@ -30,6 +30,8 @@
30#include "libunwind_ext.h"30#include "libunwind_ext.h"
31#include "unwind.h"31#include "unwind.h"
3232
33#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
34
33#if !defined(_LIBUNWIND_ARM_EHABI) && !defined(__USING_SJLJ_EXCEPTIONS__)35#if !defined(_LIBUNWIND_ARM_EHABI) && !defined(__USING_SJLJ_EXCEPTIONS__)
3436
35#ifndef _LIBUNWIND_SUPPORT_SEH_UNWIND37#ifndef _LIBUNWIND_SUPPORT_SEH_UNWIND
lib/libunwind/src/libunwind.cpp+2
...@@ -30,6 +30,8 @@...@@ -30,6 +30,8 @@
30#include "AddressSpace.hpp"30#include "AddressSpace.hpp"
31#include "UnwindCursor.hpp"31#include "UnwindCursor.hpp"
3232
33#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
34
33using namespace libunwind;35using namespace libunwind;
3436
35/// internal object to represent this processes address space37/// internal object to represent this processes address space