test/TestCircularBuffer: add `constexpr` to fix -Wvla
This commit is contained in:
parent
3eae3a2826
commit
71f9332bd3
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
TEST(CircularBuffer, Basic)
|
TEST(CircularBuffer, Basic)
|
||||||
{
|
{
|
||||||
static size_t N = 8;
|
constexpr size_t N = 8;
|
||||||
int data[N];
|
int data[N];
|
||||||
CircularBuffer<int> buffer(data, N);
|
CircularBuffer<int> buffer(data, N);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue