cleanup some build error with ICC 2019 (issue #9)

This commit is contained in:
greg
2019-05-10 19:48:31 -04:00
parent 470f0644c0
commit 141c4da24e
3 changed files with 17 additions and 24 deletions
+4 -23
View File
@@ -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
// ----------------------------------------------------------------------