Commit bcc11a89 by Jeremy Ong Committed by GitHub

Uses alignas for portability in dynamic_annotations.h (#947)

Fixes an MSVC compiler error when address sanitizers are enabled
parent a5167f98
......@@ -471,7 +471,7 @@ using absl::base_internal::ValgrindSlowdown;
__sanitizer_annotate_contiguous_container(beg, end, old_mid, new_mid)
#define ABSL_ADDRESS_SANITIZER_REDZONE(name) \
struct { \
char x[8] __attribute__((aligned(8))); \
alignas(8) char x[8]; \
} name
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment