folly: attribute-aligned-arg must now be constant (not enum)
authorJim Meyering <meyering@fb.com>
Tue, 13 Aug 2013 16:31:45 +0000 (09:31 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 28 Aug 2013 21:30:11 +0000 (14:30 -0700)
commit21effa23799fe52594ef73baffd3f2c8a6e8b43f
treeed35eea8d4bbbcf9550eaa8b7512c30501a50f1d
parent6d5d48ac0610d5298ed21ab6882ac4dccb56d2b5
folly: attribute-aligned-arg must now be constant (not enum)

Summary:
With gcc-4.8.[01], the argument to __attribute__((__aligned__(...)))
must be a literal;  using an enum member evokes this:

./folly/MPMCQueue.h:341:63: error: requested alignment is not an \
integer constant
size_t capacity_ FOLLY_ON_NEXT_CACHE_LINE;

Changing the enum member to this made no difference:

static constexpr size_t kFalseSharingRange = 64;

Test Plan: compile tao and run test suite

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D926221

@override-unit-failures
folly/MPMCQueue.h