summaryrefslogtreecommitdiff
path: root/src/pal/src/exception/seh-unwind.cpp
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2018-03-27 15:27:01 +0200
committerGitHub <noreply@github.com>2018-03-27 15:27:01 +0200
commit6ecb1ac550ec1876094264cdbdd629c1a832ebee (patch)
tree17d159ec127b59ee7253be76750bd44d8598b890 /src/pal/src/exception/seh-unwind.cpp
parent4e9206ca403d3c4a86c8611b75dca57655e365ea (diff)
downloadcoreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.tar.gz
coreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.tar.bz2
coreclr-6ecb1ac550ec1876094264cdbdd629c1a832ebee.zip
Fix build without libunwind installed (#17221)
* Fix build without libunwind installed I have removed libunwind dependency in a recent commit, but it turns out that the build was using incorrect include paths and it was still depending on the libunwind installation for the libunwind.h header. This change fixes it. * Fix clang warning The libunwind headers contain two empty structs and clang issues a warning since the size of such structs is 0 in C and 1 in C++. This is benign for our purposes, since the affected structs are not directly used by our code.
Diffstat (limited to 'src/pal/src/exception/seh-unwind.cpp')
-rw-r--r--src/pal/src/exception/seh-unwind.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pal/src/exception/seh-unwind.cpp b/src/pal/src/exception/seh-unwind.cpp
index 7cae4a2f36..2b7c9360a6 100644
--- a/src/pal/src/exception/seh-unwind.cpp
+++ b/src/pal/src/exception/seh-unwind.cpp
@@ -28,7 +28,13 @@ Abstract:
#include <dlfcn.h>
#define UNW_LOCAL_ONLY
+// 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>
+#pragma clang diagnostic pop
//----------------------------------------------------------------------
// Virtual Unwinding