jnk0le / Ring-Buffer

simple C++11 ring buffer implementation, allocated and evaluated at compile time
MIT License
380 stars 64 forks source link

alignas(0) causes gcc warnings #15

Open jnk0le opened 3 years ago

jnk0le commented 3 years ago

warning: requested alignment '0' is not a positive power of 2 [-Wattributes]

according to the c++11 standard zero alignment should be ignored.

"— if the constant expression evaluates to zero, the alignment specifier shall have no effect"