Skip to content

Commit 003bba4

Browse files
committed
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
1 parent fffa897 commit 003bba4

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

lib/libunwind/src/Unwind-seh.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
#include "libunwind_ext.h"
2929
#include "UnwindCursor.hpp"
3030

31+
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
32+
3133
using namespace libunwind;
3234

3335
#define STATUS_USER_DEFINED (1u << 29)

lib/libunwind/src/UnwindLevel1-gcc-ext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include "Unwind-EHABI.h"
2323
#include "unwind.h"
2424

25+
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
26+
2527
#if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS)
2628

2729
#if defined(_LIBUNWIND_SUPPORT_SEH_UNWIND)

lib/libunwind/src/UnwindLevel1.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "libunwind_ext.h"
3131
#include "unwind.h"
3232

33+
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
34+
3335
#if !defined(_LIBUNWIND_ARM_EHABI) && !defined(__USING_SJLJ_EXCEPTIONS__)
3436

3537
#ifndef _LIBUNWIND_SUPPORT_SEH_UNWIND

lib/libunwind/src/libunwind.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "AddressSpace.hpp"
3131
#include "UnwindCursor.hpp"
3232

33+
#pragma clang diagnostic ignored "-Wdll-attribute-on-redeclaration"
34+
3335
using namespace libunwind;
3436

3537
/// internal object to represent this processes address space

0 commit comments

Comments
 (0)