mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +08:00
cleanup some build error with ICC 2019 (issue #9)
This commit is contained in:
Vendored
+4
-23
@@ -554,24 +554,12 @@
|
||||
#define PHMAP_ATTRIBUTE_COLD
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::xray_always_instrument) && \
|
||||
!defined(PHMAP_NO_XRAY_ATTRIBUTES)
|
||||
#define PHMAP_XRAY_ALWAYS_INSTRUMENT [[clang::xray_always_instrument]]
|
||||
#define PHMAP_XRAY_NEVER_INSTRUMENT [[clang::xray_never_instrument]]
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::xray_log_args)
|
||||
#define PHMAP_XRAY_LOG_ARGS(N) \
|
||||
[[clang::xray_always_instrument, clang::xray_log_args(N)]]
|
||||
#if defined(__clang__)
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::reinitializes)
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES [[clang::reinitializes]]
|
||||
#else
|
||||
#define PHMAP_XRAY_LOG_ARGS(N) [[clang::xray_always_instrument]]
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES
|
||||
#endif
|
||||
#else
|
||||
#define PHMAP_XRAY_ALWAYS_INSTRUMENT
|
||||
#define PHMAP_XRAY_NEVER_INSTRUMENT
|
||||
#define PHMAP_XRAY_LOG_ARGS(N)
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::reinitializes)
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES [[clang::reinitializes]]
|
||||
#else
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES
|
||||
#endif
|
||||
@@ -601,13 +589,6 @@
|
||||
#define PHMAP_ATTRIBUTE_FUNC_ALIGN(bytes)
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::require_constant_initialization)
|
||||
#define PHMAP_CONST_INIT [[clang::require_constant_initialization]]
|
||||
#else
|
||||
#define PHMAP_CONST_INIT
|
||||
#endif // PHMAP_HAVE_CPP_ATTRIBUTE(clang::require_constant_initialization)
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Figure out SSE support
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user