summaryrefslogtreecommitdiffstats
path: root/thirdparty/embree/common/sys/sysinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/embree/common/sys/sysinfo.cpp')
-rw-r--r--thirdparty/embree/common/sys/sysinfo.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/thirdparty/embree/common/sys/sysinfo.cpp b/thirdparty/embree/common/sys/sysinfo.cpp
index 7f7a009a1e..d01eab3c9d 100644
--- a/thirdparty/embree/common/sys/sysinfo.cpp
+++ b/thirdparty/embree/common/sys/sysinfo.cpp
@@ -1,9 +1,15 @@
// Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
+#if defined(__INTEL_LLVM_COMPILER)
+// prevents "'__thiscall' calling convention is not supported for this target" warning from TBB
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wignored-attributes"
+#endif
+
#include "sysinfo.h"
#include "intrinsics.h"
-#include "string.h"
+#include "estring.h"
#include "ref.h"
#if defined(__FREEBSD__)
#include <sys/cpuset.h>
@@ -690,3 +696,6 @@ namespace embree
}
#endif
+#if defined(__INTEL_LLVM_COMPILER)
+#pragma clang diagnostic pop
+#endif